Reputation: 887
Current Behavior
bundling failed: Error: Unable to resolve module `
react-native-screens` from `node_modules/react-navigation-tabs/src/navigators/createBottomTabNavigator.js`: react-native-screens could not be found within the project.
Your Environment
| software | version |
| react-navigation | 3.11.1
| react-native | 0.61.2
| node | 12.13.0
Upvotes: 28
Views: 43583
Reputation: 1
Delete the node_modules
folder
Execute the following command in the terminal
npm install react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
Install all remaining packages
npm install
Upvotes: 0
Reputation: 2768
If you are using react-navigation in your bare react-native project do not forget to also install the following required dependencies:
npm install react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
...or with expo
expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view
Upvotes: 18
Reputation: 230
If this issue comes with ios simulator it can be because of IOS version of the simulator. This happens when using the ios version below than ios 11. Try using ios 11 version or later version in the simulator.
Upvotes: 1
Reputation: 2804
[email protected]" has unmet peer dependency "react-native-screens@^1.0.0 || ^1.0.0-alpha".
You have too install it manually.
Upvotes: 1
Reputation: 887
well i have solved this by reinstalling / updating these packages.
npm install --save react-native-gesture-handler react-native-reanimated react-native-screens
Upvotes: 44