react-native: Unable to resolve module `react-native/Libraries/Renderer/shims/ReactNativeBridgeEventPlugin`

Is this a bug report?

yes

Have you read the Contributing Guidelines?

yes

Environment

Steps to Reproduce

I started my project 2 months ago. my project worked correctly until I forced relaunch project(removed project files and git clone project from GitHub and npm install after npm start). 1.npm install or yarn install (Tested with both) 2.npm start or yarn start

Expected Behavior

I expected start project correctly.

Actual Behavior

1 2 3

also after run npm ls : 4

package.json

{
  "name": "sirin",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "jest-expo": "~20.0.0",
    "react-native-scripts": "1.2.1",
    "react-test-renderer": "16.0.0-alpha.12"
  },
  "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
  "scripts": {
    "links": "react-native link",
    "start": "react-native-scripts start",
    "eject": "react-native-scripts eject",
    "android": "react-native-scripts android",
    "ios": "react-native-scripts ios",
    "test": "node node_modules/jest/bin/jest.js --watch"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "rnpm": {
    "assets": [
      "src/assets/fonts"
    ]
  },
  "dependencies": {
    "art": "^0.10.1",
    "d3": "^4.10.2",
    "d3-array": "^1.2.1",
    "d3-path": "^1.0.5",
    "d3-shape": "^1.2.0",
    "expo": "^20.1.3",
    "prop-types": "^15.5.10",
    "react": "16.0.0-alpha.12",
    "react-native": "^0.47.0",
    "react-native-chart": "^1.0.8-beta",
    "react-native-charts-wrapper": "^0.2.10",
    "react-native-circular-progress": "^0.0.8",
    "react-native-customisable-switch": "^0.1.0",
    "react-native-datepicker": "^1.6.0",
    "react-native-device-info": "^0.11.0",
    "react-native-drawer": "^2.5.0",
    "react-native-elements": "^0.16.0",
    "react-native-filesystem": "^0.1.0",
    "react-native-gesture-handler": "^1.0.0-alpha.31",
    "react-native-installed-apps": "0.0.6",
    "react-native-keyboard-aware-scroll-view": "^0.3.0",
    "react-native-material-switch": "^0.0.4",
    "react-native-modal": "^3.1.0",
    "react-native-pathjs-charts": "0.0.31",
    "react-native-progress": "^3.4.0",
    "react-native-progress-circle": "^2.0.0",
    "react-native-responsive-image": "^2.1.0",
    "react-native-shadow": "^1.2.1",
    "react-native-side-menu": "^1.0.2",
    "react-native-simple-toast": "^0.0.7",
    "react-native-snap-carousel": "^3.2.2",
    "react-native-svg": "^5.4.1",
    "react-native-svg-image": "^2.0.0",
    "react-native-svg-uri": "^1.2.1",
    "react-native-switch": "^1.1.0",
    "react-native-vector-icons": "^4.3.0",
    "react-navigation": "^1.0.0-beta.11",
    "redux-thunk": "^2.2.0"
  }
}

Reproducible Demo

I cannot be launched project so I cannot show a demo. I think is the problems of GestureHandler.js but I cannot solve it. I tested project with new versions (react,react-native, expo) problems solved.but I cannot update those versions because the UI components will be broken.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 21

Most upvoted comments

I solved this as npm uninstall react-native-gesture-handler npm install -save react-native-gesture-handler@1.0.0-alpha.27

Maybe try to update to Expo v22.0.0 or latest (v23.0.0), looks like the dependency is fixed there!

It didn’t work for me with npm install --save react-native-gesture-handler@1.0.0-alpha.27, I have tried 23 to 29 all but no luck with my react-native starter kit. struggling to find out the compatible one.

i have similar problem on expo sdkVersion 20.0.0