Install The Package
- npm
- yarn
- pnpm
Install The Peer Dependencies
The current package peer surface on main is:@react-navigation/native >= 6.0.0@react-navigation/native-stack >= 7.0.0@react-navigation/elements >= 2.0.0react-native-reanimated >= 3.16.0or4.xreact-native-gesture-handler >= 2.16.1react-native-screens >= 4.4.0
expo install:
Reanimated Setup
Import Reanimated once at the top of your app entry file:Optional Dependencies
Install these only when you use them:Native Project Step
For bare React Native projects:Expo Notes
If you need masked-view based flows in Expo, use prebuild. They do not work in Expo Go:Gesture Root
The library’s stack core already mountsGestureHandlerRootView and SafeAreaProviderCompat for its own navigators.
You do not need an extra app-wide GestureHandlerRootView just to use blank stack or native stack from this library.
Verify Installation
If this renders and navigates without Reanimated or Gesture Handler errors, the base setup is correct:Next Steps
- Continue with Quick Start
- See Expo Router if you use file-based routing
- See Masked View Setup if you use the legacy masked shared presets
