null is not an object (evaluating 'rngesturehandlermodule.direction')

Bruno Netto picture Bruno Netto · Mar 25, 2019 · Viewed 12.7k times · Source

I am creating a login system with react-native, after downloading the "react-native-gesture-handler" dependencies: "^ 1.1.0" and "react-navigation": "^ 3.5.1" began to appear the following message error:

null is not an object (evaluating 'rngesturehandlermodule.direction')

I tried to delete the project and reface it, delete and reinstall the node_modules folder and reinstall the dependencies, but nothing worked.

Answer

Pranav Karnik picture Pranav Karnik · Apr 11, 2019

I had the same issue. I then installed react-navigation & react-native-gesture-handler step by step as follows:

Steps :

  1. Remove node_modules and package-lock.json

  2. npm install

  3. npm install --save react-navigation

  4. npm install --save react-native-gesture-handler

  5. react-native link

You can find the original answer here