Installing React Navigation

React Native 5 min min read Updated: Jul 26, 2026 Beginner
Installing React Navigation
Beginner Topic 2 of 15

Installing React Navigation

Before implementing any navigation pattern, you need to correctly install and configure React Navigation along with its required dependencies. This tutorial walks through the complete installation process.

Step 1: Install the Core Library

bash npm install @react-navigation/native

Step 2: Install Required Dependencies

React Navigation relies on several supporting libraries for gestures, screen management, and safe area handling.

bash npm install react-native-screens react-native-safe-area-context

Step 3: Install a Navigator Package

You must also install the specific navigator package you plan to use, such as the stack navigator.

bash npm install @react-navigation/native-stack

Step 4: Wrap Your App in NavigationContainer

javascript import { NavigationContainer } from '@react-navigation/native'; function App() { return ( {/* Navigator goes here */} ); }

Step 5: iOS-Specific Setup

On macOS, install CocoaPods dependencies after adding native libraries.

bash cd ios && pod install

Verifying Your Installation

After installation, run your app on both Android and iOS to confirm there are no missing dependency errors before building out your navigation structure.

Conclusion

Correctly installing React Navigation and its required dependencies is the essential first step before building stack, tab, or drawer-based navigation in your React Native application.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators