undefined Unable to resolve module @react-navigation/native
from App.js
: @react-navigation/native could not be found within the project.
If you
This error occurs because you haven't installed react-navigation.
Run:
npm install react-navigation
npm start -- --reset-cache
npm install @react-navigation/native
if using expo:
expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view
Also run:
npm install react-navigation
the best solution is to delete your node_modules and package-lock.json and try npm install, it works for me
well i have solved this by reinstalling / updating these packages.
npm install --save react-native-gesture-handler react-native-reanimated react-native-screens
do the trick for
npm start -- --reset-cache
But performing the following did succeed:
Delete
node_modules & package-lock.json Delete app from phone
run npm start -- --reset-cache
run app