Ecosystem

Animations when moving from React Native to Compose

Map existing animation behavior to Compose and keep route transitions with the React Native router during coexistence.

On this page

Map the motion to its owner#

Existing behavior Where to implement it during coexistence
Fade, scale or color inside a Compose component Use a Compose value animation such as animateFloatAsState.
Show, hide or swap Compose content Use AnimatedVisibility, AnimatedContent or animateContentSize, depending on what changes.
A gesture within the shared component Handle the gesture and its animation in Compose. Report completed actions to React Native when needed.
Transition between routes Keep it in the React Native navigator for as long as it owns the route.

Compose animation APIs · Navigation and Fabric

Verify interactions and interruptions#

Capture the behavior of the original animation before porting it. Compare start and end states, what happens when the user interrupts the gesture, and how the animation behaves with reduced motion where the original supports it. Test inside the real host, including scrolling and any transition that begins in React Native and ends on the Compose screen.