Adapters let an existing navigator use the screen transition runtime without moving to one of this package's bundled navigator creators.
withScreenTransitions
Use withScreenTransitions() when your app primarily uses React Navigation's native stack and you want specific screens to support custom screen transitions without giving up the native-stack behavior your app already depends on.
Wrap the native-stack navigator with the adapter to make its screens transition aware. For longer multi-screen custom-motion flows, prefer Blank Stack instead.
TSX
Don't forget to set enableTransitions to true when you want this screen to use custom transitions.
TSX
Expo Router
For Expo Router, wrap the adapted native stack with withLayoutContext():
This v3 adapter supports Expo Router through Expo SDK 55. Expo Router forked its navigation internals in SDK 56, so SDK 56+ apps must use the separate v4 alpha Expo Router integration.
TSX
Blank stack is still the default recommendation for custom motion. Use the native-stack adapter when the app already depends on native-stack behavior and only needs selected screens or flows to participate in custom transitions.