React-native-gesture-handler: null is not an object ( evaluating 'RNGestureHandlerModule.default.Direction')

Created on 1 Apr 2020  路  11Comments  路  Source: software-mansion/react-native-gesture-handler

I'm having this issue in mac os / ios with react-nagivation and react-native-gesture-handler latest release. kindly help!

image

My package.json config:

{
  "name": "appfinance",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "@react-native-community/masked-view": "^0.1.7",
    "@react-navigation/native": "^5.1.4",
    "@react-navigation/stack": "^5.2.9",
    "react": "16.8.3",
    "react-native": "0.59.9",
    "react-native-gesture-handler": "^1.6.1",
    "react-native-reanimated": "^1.7.1",
    "react-native-safe-area-context": "^0.7.3",
    "react-native-screens": "^2.4.0",
    "react-navigation": "^4.3.6"
  },
  "devDependencies": {
    "@babel/core": "^7.9.0",
    "@babel/runtime": "^7.9.2",
    "babel-jest": "^25.2.3",
    "jest": "^25.2.3",
    "metro-react-native-babel-preset": "^0.59.0",
    "react-test-renderer": "16.8.3"
  },
  "jest": {
    "preset": "react-native"
  }
}

Most helpful comment

Searching the react-navigation docs, I found this

All 11 comments

Searching the react-navigation docs, I found this

Hi @amazingmarvin . Not working for me :/

I am stuck with same issue.

"dependencies": {
    "@react-native-community/masked-view": "^0.1.9",
    "@react-navigation/native": "^5.1.5",
    "@react-navigation/stack": "^5.2.10",
    "base-64": "^0.1.0",
    "react": "16.11.0",
    "react-native": "0.62.2",
    "react-native-gesture-handler": "^1.6.1",
    "react-native-reanimated": "^1.8.0",
    "react-native-safe-area-context": "^0.7.3",
    "react-native-screens": "^2.4.0"
  }

Its working fine with react native app which is using ReactActivity(From scratch app )
but its not working with existing application which using ReactRootView and ReactInstanceManager instance in activity

OS: Android

Hi @rahulnainwal107 . Thanks, but not working for me :/

I opened and built the project in xcode, that fixed this error for me.

Doing Pod Install and Restart the Xcode works for me.

Hi I am still getting this error. Pod install and restart of Xcode does not work.

And also install react-native-gesture-handler and react-native link for the android.

Having this same issue for Windows on Android on version 0.62.0-0. Tried the following and has not worked:

1) unlinking react-native-gesture-handler
2) rm -rf node_modules && npm install && react-native run-android --reset-cache

Duplicate of #494.

I have the same issue
I ran command
npm i react-native-gesture-handler
and then it works

Was this page helpful?
0 / 5 - 0 ratings