Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

null is not an object (evaluating '_RNGestureHandlerModule.default.Direction')

I followed the instructions for installing react-navigation 3.x from their website. I re-built the app and even created new project and followed the instructions again. but still getting the same above error. any idea?

edit: I am running the app react-native cli using react-native run-ios. I am not using Xcode

error screenshot

like image 252
Akram Avatar asked Mar 04 '23 18:03

Akram


1 Answers

Looks like this is to do with the new autolinking feature in RN 0.60.

To fix for now just add the following podspec for RNGesureHandler to ios/Podfile

pod 'RNGestureHandler', :podspec => '../node_modules/react-native-gesture-handler/RNGestureHandler.podspec'

Then in the ios directory run pod install to install it.

like image 192
Harsh Panchal Avatar answered Apr 09 '23 19:04

Harsh Panchal