Skip to content

Add some more clarification about RCT_EXPORT_XXX #202

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

Merged
merged 3 commits into from
Jul 4, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/fabric-native-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,8 @@ The most important call is to the `RCT_EXPORT_MODULE`, which is required to expo
Then, you have to expose the `text` property for the Fabric Native Component. This is done with the `RCT_EXPORT_VIEW_PROPERTY` macro, specifying a name and a type.

> [!Note]
> Unlike legacy native components, properties are actually handled via `updateProps` C++ code, see below.
> Those macros are needed for the bridge, With bidgeless mode you can omit them.
> There are other macros that can be used to export custom properties, emitters, and other constructs. You can view the code that specifies them [here](https://github.com/facebook/react-native/blob/main/packages/react-native/React/Views/RCTViewManager.h).

##### RTNCenteredText.h
Expand Down