Error: Unable to resolve module ` react-native-screens` from `node_modules/react-navigation-tabs/src/navigators/createBottomTabNavigator.js`

谁说胖子不能爱 提交于 2020-12-08 05:21:38

问题


Current Behavior

  • After executing app is not installing reporting
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


回答1:


well i have solved this by reinstalling / updating these packages.

npm install --save react-native-gesture-handler react-native-reanimated react-native-screens




回答2:


react-navigation-tabs@2.7.0" has unmet peer dependency "react-native-screens@^1.0.0 || ^1.0.0-alpha".

You have too install it manually.




回答3:


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.




回答4:


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



来源:https://stackoverflow.com/questions/60051096/error-unable-to-resolve-module-react-native-screens-from-node-modules-react

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!