software-mansion/react-native-gesture-handler

React Native Error: TypeError: null is not an object _RNGestureHandlerModule.default.Direction

Closed this issue · 8 comments

I have tried many ways to fix this error but all attempts have failed.

  • FOR ANDROID NOT IOS.

enter image description here

I was trying for android. I found bug react-native-gesture-handler buy i don't know how to fix it.

I am following this instruction step by step https://reactnavigation.org/docs/en/getting-started.html

I tried linking the react-native-gesture-handler manual. and also tried unlinked.
I made react-native.config.js with code

exports = {
    dependencies: {
      'react-native-gesture-handler': {
        platforms: {
          android: null,
          ios: null,
        },
      },
    },
  };

I am using System:

 OS: Linux 5.3 Arch Linux undefined
    CPU: (12) x64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
    Memory: 16.06 GB / 31.21 GB
    Shell: 5.0.11 - /bin/bash
  Binaries:
    Node: 12.13.0 - /usr/bin/node
    Yarn: 1.19.1 - /usr/bin/yarn
    npm: 6.12.1 - /usr/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  npmPackages:
    react: 16.9.0 => 16.9.0 
    react-native: 0.61.4 => 0.61.4 
  npmGlobalPackages:
    react-native-cli: 2.0.1

"react-navigation": "^2.18.2",
"react-navigation-stack": "^1.10.3"
  • FOR ANDROID NOT IOS.

Any resolution on this?

@ratimaisuradze try update react-navigation with last version of react-native-gesture-handler

import 'react-native-gesture-handler'
have you added it in the top of your index.js file?

I had same issue. Any resolution on this? For Android not IOS.

I had same issue. Any resolution on this? For Android not IOS.

image

Duplicate of #494.