xxxxxxxxxx
npm install @react-navigation/stack
npm install @react-navigation/native --save
xxxxxxxxxx
expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view
Copy
xxxxxxxxxx
npm install @react-navigation/native --legacy-peer-deps
//OR
npm install @react-navigation/native
-----------------------------------------------
//AND
-----------------------------------------------
npm install @react-navigation/native-stack --legacy-peer-deps
//OR
npm install @react-navigation/native-stack
//Example
https://reactnavigation.org/docs/hello-react-navigation