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

Add some more clarification about RCT_EXPORT_XXX #202

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mfazekas
Copy link
Collaborator

@mfazekas mfazekas commented Jun 29, 2024

They are a bit confusing as it seems to be required unless brdigeless mode is on, but properties are actually handled in updateProps:, and not with objective-c props like in legacy components

See #154

Static ViewConfigs

In addition, Bridgeless Mode optimizes component rendering with Static ViewConfigs.

ViewConfigs tell React what props and events a native component supports. Prior, ViewConfigs were generated at run-time by analyzing a native component's ViewManager.

With Static ViewConfigs, we move this work to build-time by analyzing a native component's Flow or TypeScript spec file. If a native component does not have a spec file, then Bridgeless will fallback to run-time ViewConfig generation.

They are a bit confusing as it seems to be required unless brdigeless mode is on, but properties are actually handled in updateProps.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants