-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Use compose to render Switch in Fabric #32871
base: main
Are you sure you want to change the base?
Conversation
Summary: This change is a proof of concept to try Compose integration with RN component on Android by measuring and drawing Switch component through a Composable function. To interface Composable nodes with the view system, we use a "classic" view interoperability layer to plug Compose-based Switch into existing ViewManager and propagate props and events as we do with “classic” views. Fabric also requires initial measure during layout, which was implemented through custom background `Recomposer` and `LayoutNode` hacks to avoid creating full-blown view. Differential Revision: D31657259 fbshipit-source-id: ad5d2434d8c783d03f93b829e46e7e09ef5c4564
This pull request was exported from Phabricator. Differential Revision: D31657259 |
|
Base commit: 0fccbd5 |
This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Summary:
This change is a proof of concept to try Compose integration with RN component on Android by measuring and drawing Switch component through a Composable function.
To interface Composable nodes with the view system, we use a "classic" view interoperability layer to plug Compose-based Switch into existing ViewManager and propagate props and events as we do with “classic” views.
Fabric also requires initial measure during layout, which was implemented through custom background
Recomposer
andLayoutNode
hacks to avoid creating full-blown view.Differential Revision: D31657259