-
-
Notifications
You must be signed in to change notification settings - Fork 984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
null is not an object ( evaluating 'RNGestureHandlerModule.default.Direction') #676
Comments
please tell solution for android windows.
…On Mon, 8 Jul 2019, 3:54 p.m. Yasir KAVRAŞ, ***@***.***> wrote:
Hello,
1 - yarn add react-navigation
2 - yarn add react-native-gesture-handler
3 - cd ios/
4 - pod install
5 - cd ..
6 - react-native run-ios and react-native run-android
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#676>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALAPVJHCAPBRJGN37JN7MKDP6MME5ANCNFSM4H6XUVLQ>
.
|
I have the same questions. |
In 0.60, this is an awful bug. Please solve it as soon as possible. |
pod install on ios folder works for me
|
This worked. Thanks, @har2008preet! 🚀
|
How resolve it on Android and Window system. |
it works well in iOS, but still fail to run in Android. Who can tell me how to solve the bug in Android? |
I run my app on Android successfully with react-native-gesture-handler
|
@dangtienngoc , can you help how to use jetify to fix android X? |
You can check it here: https://github.com/mikehardy/jetifier |
@MrHazimAli I do a video my step resolve issue here:
|
thanks @dangtienngoc , working! |
thanks @dangtienngoc , it works!!!! |
many thanks for your video. @dangtienngoc , I use jetifier It was been build successful. |
In [email protected] it doesn't work. I still get the same error, even after jetify "null is not an object ( evaluating 'RNGestureHandlerModule.default.Direction')" |
@meraklis56 try to commenting this line:
in the your project -> node_modules -> react-native-gesture-handler -> GestureHandler.js Good luck. |
Now the error is:
|
[email protected] not support android X yet, check your react native cli ^2.0.0 => ^0.60.0 Because react native cli ^2.0.0 support auto linking module |
Remove this modification: // export { default as Directions } from './Directions'; And if you specified something in your "react-native.config.js", remove it. add these lines in your MainActivity.java: And add this inside the MainActivity class, just after protected String getMainComponentName() function And after that do: Then do the usual: |
please check your MainApplication.java
if you do not use Autolink function this package will not added try to add
and don't forget the import Please give feedback if it works |
I installed the new version yesterday, using this show. same error ,it is not good to follow the method provided below and keep reporting errors. who can help me ?thinksyou waiting for this , dependencies: "dependencies": { "react": "16.8.6", "react-native": "0.60.0", "react-native-gesture-handler": "^1.3.0", "react-navigation": "^3.11.0" }, |
Has this problem been solved? I made the same mistake as ios. |
I failed to mention that I am using React-Native-Navigation thus, according to installing guides I should ignore those steps and wrap every screen component using gestureHandlerRootHOC on the JS side, instead. The moment I am just importing the react-native-gesture-handler, i get the aforementioned error. |
Ok, which version of react-native-gesture-handler are you using? |
|
Ok, can I have a look to your MainApplication.java, build.gradle (from app/) and your react-native.config.js (if you have one) |
Finally, I quit React Native. Either you can waste your time fixing bugs or you can make your project, it's on your luck. |
Facebook should spare some time on fixing RN for windows, not everyone uses a mac. |
For iOS I had to manually add this to the Podfile |
Running My woes were caused by following the installation instructions of React Navigation which seem to be outdated for RN 0.60 |
In my case use_native_modules! was missing from my Podfile, that will make pod install to install the missing module(s) |
This worked for me |
As it turned out all I needed was a gradle clean (./gradlew clean) and then copying the "\android\app\build\outputs\apk\debug\app-debug.apk" manually into the device and installing (also manually) and all errors vanished. |
In case anyone needs the versions: |
video link expired! |
Just close the terminal and delete the app and run it again it will do it. |
how do you want to run a deleted app? |
This happens to me after installed React Navigation with the Android Simulator opened before. So...I've
3 - run worked. Maybe React cannot update his new deps on an old installed App? |
If you get this error on iOS but the android version works fine, Do this:
And there you go!!! |
You're my hero! |
i trying to fix this for 4 hours, if you are running in mac and try to use the ios simulator ty to do this:
but after this restart the server and i think is gonna works, just like work for me |
I am using "react-native": "0.61.5" Make sure you follow steps for the version you are using (React Native 0.61.5 and lower in my case)
Good Luck, These steps worked for me |
thanks this trick work for me |
I am glad it worked for you! |
Thank you. It worked for me. |
This may help some people out there. Please provide link repo with reproduction example, we can't take any sensible action with only this screenshot. |
Duplicate of #494. |
I was facing the same issue on Android 9 with
And this solution worked for me. Thanks a million! |
Hi, i'm still facing this issue, the message is slightly different (instead of null is undefined)
|
if you are using android try this solution : tro to change it with : |
Hi, i'm still facing this issue, TypeError: null is not an object (evaluating '_RNGestureHandlerModule.default.Direction') and this is setting.gradle rootProject.name = 'Something' |
Hi, i'm still facing this issue, TypeError: null is not an object (evaluating '_RNGestureHandlerModule.default.Direction') My ------- setting.gradle |
I was on a physical Android device debugging over Wi-Fi, the following solution worked for me:
Hope this helps! |
Worked for me. Not sure what it'll break down the line though... |
This ios solution works for me! My project hasn't utilizing 'react-native-gesture-handler', but it solves the bug. My best guess is the error could be from 'react-native-gesture-handler' implicitly required by 'react-native-navigation' - after a few dependency upgrades / downgrades / pod deintegrate / fixes in ios .xcworkspace, this could happen. For dear Android dev fellows, try to reinstall 'react-native-gesture-handler' maybe? |
if none of answers worked, just assume that you must : |
for android, I just installed |
Closing due to spam. If you still experience this problem, open a new issue with the reproducible example. |
I'm having this issue in Android with react-nagivation and react-native-gesture-handler latest release. kindly help
The text was updated successfully, but these errors were encountered: