Migration
Migrate a component
Embed one Compose component inside an existing React Native screen and verify the host layout and callbacks.
On this page
Pick the component contract#
Start with a bounded element with clear inputs and actions. Write down its props, callbacks, accessibility behavior and how React Native sizes it. Keep the surrounding route and shared state with their current owner.
Replace the view#
Export a public composable with @ReactNativeComponent. Define the inputs as typed parameters and expose actions through callbacks returning Unit. Give Modifier a Kotlin default. Regenerate the bindings, render the generated component in the existing React Native screen, and pass React Native layout via style. Component example · Generate bindings
Verify in the real host#
Check the actual parent layout on Android and iOS, including scrolling or clipping if present. Exercise callbacks, resizing, dark mode and accessibility states that were supported by the original. Enter and leave the screen to test mounting through navigation. If the component works in isolation, also verify it in the parent used in production.