Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Removes interface only check from third party components GenerateThirdPartyFabricComponentsProvider #32779

Conversation

Ubax
Copy link
Contributor

@Ubax Ubax commented Dec 17, 2021

Summary

Currently the codegen does not include component with field interfaceOnly set to true in the ThirdPartyFabricComponentsProvider.

These components need to be added to this file, so that non-core components can be used in fabric.

Changelog

[General [Fixed] - Fixes GenerateThirdPartyFabricComponentsProvider

Test Plan

Run codegen with component outside of core on iOS.

Check if components with and without interfaceOnly are added to RCTThirdPartyFabricComponentsProvider

@facebook-github-bot
Copy link
Contributor

Hi @Ubax!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@pull-bot
Copy link

pull-bot commented Dec 17, 2021

Messages
📖

📋 Verify Changelog Format - A changelog entry has the following format: [CATEGORY] [TYPE] - Message.

CATEGORY may be:
  • General
  • iOS
  • Android
  • JavaScript
  • Internal (for changes that do not need to be called out in the release notes)

TYPE may be:

  • Added, for new features.
  • Changed, for changes in existing functionality.
  • Deprecated, for soon-to-be removed features.
  • Removed, for now removed features.
  • Fixed, for any bug fixes.
  • Security, in case of vulnerabilities.

MESSAGE may answer "what and why" on a feature level. Use this to briefly tell React Native users about notable changes.

Generated by 🚫 dangerJS against 7745240

@analysis-bot
Copy link

analysis-bot commented Dec 17, 2021

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: dc5cae5
Branch: main

@analysis-bot
Copy link

analysis-bot commented Dec 17, 2021

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,287,518 +778
android hermes armeabi-v7a 7,619,626 +792
android hermes x86 8,757,929 +970
android hermes x86_64 8,696,298 +953
android jsc arm64-v8a 9,675,961 +766
android jsc armeabi-v7a 8,664,762 +786
android jsc x86 9,631,889 +970
android jsc x86_64 10,227,845 +946

Base commit: dc5cae5
Branch: main

@sota000
Copy link
Contributor

sota000 commented Dec 17, 2021

Thanks, @Ubax! cc: @sammy-SC

@sota000
Copy link
Contributor

sota000 commented Dec 17, 2021

Ohh, I need the CLA to be added. I'll import it after that's added. cc: @Ubax

@sota000 sota000 self-requested a review December 17, 2021 14:19
Copy link
Contributor

@sota000 sota000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to get this back on your plate about the CLA.

@react-native-bot react-native-bot added the No CLA Authors need to sign the CLA before a PR can be reviewed. label Dec 18, 2021
@Ubax Ubax requested a review from sota000 December 20, 2021 10:49
@Ubax
Copy link
Contributor Author

Ubax commented Dec 20, 2021

@sota000 I filled CLA

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 20, 2021
@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Dec 20, 2021
@react-native-bot react-native-bot removed the No CLA Authors need to sign the CLA before a PR can be reviewed. label Dec 20, 2021
@facebook-github-bot
Copy link
Contributor

@ShikaSD has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@ShikaSD
Copy link
Contributor

ShikaSD commented Dec 20, 2021

hey, do you mind also updating test fixtures in the packages/react-native-codegen/src/generators/components/__tests__/ folder? Seems like updated generator (expectedly) generates a bit more things there :)

@Ubax
Copy link
Contributor Author

Ubax commented Dec 20, 2021

Yeah sure

@Ubax
Copy link
Contributor Author

Ubax commented Dec 20, 2021

@ShikaSD done

@facebook-github-bot
Copy link
Contributor

@ShikaSD has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@janicduplessis
Copy link
Contributor

Awesome, I hit this issue too when trying the new architecture with an interfaceOnly component. I can confirm this fixes the issue.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @Ubax in 3e69022.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants