Skip to main content
Version: 8.x

Getting started

The Fundamentals section covers the most important aspects of React Navigation. It should be enough to build a typical mobile application and give you the background to dive deeper into the more advanced topics.

Prior knowledge

If you're already familiar with JavaScript, React and React Native, you'll be able to get moving with React Navigation quickly! If not, we recommend gaining some basic knowledge first, then coming back here when you're done.

  1. React Documentation
  2. React Native Documentation
Minimum requirements
  • react-native >= 0.83
  • expo >= 55 (development build is required)
  • typescript >= 5.9.2 (if you use TypeScript)
  • react-native-web >= 0.21.0 (if you support Web)

Installation

The @react-navigation/native package contains the core functionality of React Navigation.

In your project directory, run:

npm install @react-navigation/native@next

Installing dependencies

Next, install the dependencies used by most navigators: react-native-screens and react-native-safe-area-context.

In your project directory, run:

npx expo install react-native-screens react-native-safe-area-context @callstack/liquid-glass

This will install versions of these libraries that are compatible with your Expo SDK version.

Setting up React Navigation

When using React Navigation, you configure navigators in your app. Navigators handle transitions between screens and provide UI such as headers, tab bars, etc.

There are 2 ways to configure navigators: