0

When I try to run my React Native app it throws the following error:

Unable to resolve module react-native-screens from <app name>/node_modules/react-navigation-tabs/lib/module/navigators/createBottomTabNavigator.js: react-native-screens could not be found within the project or in these directories: <app name>/node_modules/react-navigation-tabs/node_modules.

react-native-screens is a peer dependency, shown in the package.json for react-navigation-tabs:

"peerDependencies": {
    "react": "*",
    "react-native": "*",
    "react-native-gesture-handler": "^1.0.0",
    "react-native-reanimated": "^1.0.0-alpha",
    "react-native-screens": ">=1.0.0 || >= 2.0.0-alpha.0 || >= 2.0.0-beta.0 || >= 2.0.0",
    "react-navigation": "^4.1.1"
  },

but it is not in the node_modules for react-navigation-tabs. The node_modules looks like this:

enter image description here

gkeenley
  • 6,088
  • 8
  • 54
  • 129

0 Answers0