expo: Unable to resolve "react-native-gesture-handler" Expo SDK 34.0.1

Updating Expo from 33.0.0 to 34.0.1, getting an error after expo start -c

Unable to resolve “react-native-gesture-handler” from “node_modules@react-navigation\native\src\Scrollables.js”

My package.json looks like this:

{
  "name": "nativeapp",
  "main": "node_modules/expo/AppEntry.js",
  "private": true,
  "scripts": {
    "start": "expo start",
    "android": "expo start --android",
    "ios": "expo start --ios",
    "eject": "expo eject",
    "test": "node ./node_modules/jest/bin/jest.js --watchAll"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@expo/samples": "2.1.1",
    "@expo/vector-icons": "^10.0.0",
    "axios": "^0.19.0",
    "expo": "^34.0.1",
    "expo-asset": "~6.0.0",
    "expo-font": "~6.0.0",
    "formik": "^1.5.8",
    "lodash": "^4.17.15",
    "react": "16.8.3",
    "react-native": "https://github.com/expo/react-native/archive/sdk-34.0.0.tar.gz",
    "react-native-keyboard-aware-scroll-view": "^0.8.0",
    "react-native-svg": "~9.5.1",
    "react-navigation": "^3.11.0",
    "styled-components": "^4.3.2"
  },
  "devDependencies": {
    "@babel/core": "^7.0.0",
    "babel-eslint": "^10.0.2",
    "babel-plugin-transform-remove-console": "^6.9.4",
    "babel-preset-expo": "^5.2.0",
    "eslint": "^5.16.0",
    "eslint-config-prettier": "^6.0.0",
    "eslint-config-react-app": "^3.0.8",
    "eslint-plugin-flowtype": "^3.12.1",
    "eslint-plugin-import": "^2.18.2",
    "eslint-plugin-jsx-a11y": "^6.2.3",
    "eslint-plugin-prettier": "^3.1.0",
    "eslint-plugin-react": "^7.14.3",
    "jest-expo": "^34.0.0",
    "prettier": "^1.18.2"
  }
}

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 12
  • Comments: 15 (3 by maintainers)

Most upvoted comments

expo install react-native-gesture-handler worked for me too…

npm i -s react-native-gesture-handler worked for me.

As mentioned earlier, installing react-native-gesture-handler is the solution and the proper way to do this is expo install react-native-gesture-handler which installs the version that is supported by the SDK you’re using.

hey guys. This is how i resoled it.

  • Remove/uninstall that react-native-gesture-handler

  • Then install it again with expo, run expo install react-native-gesture-handler

other solutions, downgrade react-native-gesture-handler to ~1.3.0. take note of ~1.3.0.

It sow me the error Unable to resolve “react-native-gesture-handler” from “node_modules@react-navigation\native\src\Scrollables.js”

Did you run this command inside your project folder? expo install react-native-gesture-handler It is now necessary since Expo 34 since it’s not included by default in the Expo install.