1npm install --save react-navigation
2expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view
3npm install --save react-navigation-stack
4import { createAppContainer } from 'react-navigation';
5import { createStackNavigator } from 'react-navigation-stack';
1## Yarn
2yarn add @react-navigation/native
3yarn add react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
4
5## Npm
6npm install @react-navigation/native
7npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
8
9## Expo
10expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view
1expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view
2Copy
1//dependencies
2npm install @react-navigation/native
3npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
4
5//for stack navigator,drawer,material bottom tab,react-native paper
6npm install @react-navigation/stack @react-navigation/drawer @react-navigation/material-bottom-tabs react-native-paper
1## Npm
2npm install @react-navigation/native react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view @react-navigation/stack @react-navigation/bottom-tabs
1#expo managed project
2npm install @react-navigation/native
3expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view