question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

null is not an object ( evaluating 'RNGestureHandlerModule.Direction')

See original GitHub issue

Hi, I’m using react-native-gesture-handler within react-navigation and getting this error

null is not an object ( evaluating ‘RNGestureHandlerModule.Direction’)

screen shot 2019-03-05 at 1 27 51 am

my project is just simple and using the latest release of react-native-gesture-handle

... "dependencies": { "react": "16.6.3", "react-native": "0.58.6", "react-native-gesture-handler": "^1.1.0", "react-navigation": "^3.3.2" }, ... Seem it’s related to Direction.js fix web compatibility #406

Any suggestion for me to fix this?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:123
  • Comments:132 (8 by maintainers)

github_iconTop GitHub Comments

394reactions
ajboxjrcommented, Mar 4, 2019

Have you tried this? This solved my problem

  1. Right Click Libraries “Add Files to Project”
  2. /node_modules/react-native-gesture-handlers/ios/RNGestureHandler.xcodeproj
  3. Go to build phases and add libRNGestureHandler.a
  4. Run Good luck to you all!
160reactions
denielercommented, Mar 9, 2019

ok, in my case solved by adding:

import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
....
protected List<ReactPackage> getPackages() {
        // Add additional packages you require here
        // No need to add RnnPackage and MainReactPackage
        return Arrays.<ReactPackage>asList(
            ....
            new RNGestureHandlerPackage()
        );
    }

to android/app/src/main/java/com/projectname/MainApplication.java

Read more comments on GitHub >

github_iconTop Results From Across the Web

null is not an object ( evaluating 'RNGestureHandlerModule ...
I'm having this issue in Android with react-nagivation and react-native-gesture-handler latest release. kindly help.
Read more >
null is not an object (evaluating 'rngesturehandlermodule ...
null is not an object (evaluating 'rngesturehandlermodule.direction'). I tried to delete the project and reface it, delete and reinstall the ...
Read more >
Troubleshooting - React Navigation
I'm getting an error "null is not an object (evaluating 'RNGestureHandlerModule.default.Direction')"​. This and some similar errors might occur if you ...
Read more >
Null is not an object (evaluating '_RNGestureHandlerModule...
When developing a React Native project on my Mac, I fall into a problem when running npm run ios. My project is using...
Read more >
null is not an object ( evaluating 'RNGestureHandlerModule ...
null is not an object ( evaluating 'RNGestureHandlerModule.default.Direction')
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found