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():
Expo SDK 56 changes Expo Router's navigator internals. This package does not currently support SDK 56 without replacing the internal React Navigation imports with Expo Router imports.
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.