Abhishek Chauhan
Abhishek Chauhan

Reputation: 73

null is not an Object. RNGestureHandlerModule-Direction

I have a react native application. All of a sudden i start getting this error. I didnt change any of the files in react-navigation. Why does this error come even if i dont change anything in the App.js or any Navigation files,

Upvotes: 2

Views: 5626

Answers (4)

Mehmet
Mehmet

Reputation: 1560

In my case, first I closed the app in the simulator and then and rebuild the app with react-native run-ios command and error message is gone away.

Upvotes: 0

Sahin Elidemir
Sahin Elidemir

Reputation: 418

The install/uninstall solution didn't work for me. I fixed this issue with just a "pod install" in ios project (I thought that RNGestureHandler was already installed but no it wasn't, I don't know why). After that I was able to run my project in the ios simulator.

enter image description here

Upvotes: 3

Labinot Bajrami
Labinot Bajrami

Reputation: 425

If Linking is not working, then you should do this (for me worked):

  1. Unlink Handler Gesture
  2. Uninstall react-navigation-gesture-handler
  3. Uninstall react-navigation

react-native unlink react-native-gesture-handler

npm uninstall react-navigation

npm uninstall react-navigation-gesture-handler

Than, follow these steps:

npm install --save react-navigation

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

react-native link react-native-gesture-handler

What i did wrong, is that i didn't '--save' Gesture Handler.

Upvotes: 2

Malik Hezret
Malik Hezret

Reputation: 249

Reinstall the react-native-gesture-handler and then link it.

Upvotes: 0

Related Questions