-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always generate an EmptyNativeState (#34750)
Summary: Pull Request resolved: #34750 This Diff is the first step of enabling the CodeGen to parse and generate a NativeState for the components. The feature has been largely requested by the OSS community but it could be also helpful for people in Meta. To make this work, we also have to always generate a ViewEventEmitter: that's because the ConcreteShadowNode template lists the Generics with this order: Name, Props, EventEmitter, Others... If we skip the EventEmitters and we put the State, React Native would think that the State is actually an EventEmitter and the build step will fail. ## Changelog [General][Added] - Always generate an empty NativeState for Fabric Components Differential Revision: D39509869 fbshipit-source-id: 0c83443b185c49339a456caea1feba6023f8e1df
- Loading branch information
1 parent
eddff32
commit b9057c1
Showing
17 changed files
with
732 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.