-
-
Notifications
You must be signed in to change notification settings - Fork 810
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
Instructions: How to use React Native Debugger with RN 0.74+ #809
Comments
This is what worked for me for RN 0.74.1
|
Did not work on rn 75.4, still getting the "calling synchronous methods on native modules..." error. |
@Lakston did u add the reanimated changes? are u using the reanimated package? |
@ilyausorov are u able to use react-native-debugger's network inspector? |
Using RN 0.73.6 I'm running into this issue as well. |
Tried this, and not working with RN 0.73.6. |
Any workaround or update on this topic? |
I found a way with react-native 0.75.4. You open React Native Debugger as usual, shake the device and choose Debug JS Remotely |
After upgrading my app from RN 0.72 to 0.74 I noticed that React Native Debugger stopped working for our team. We managed to fix it with a couple of patches. Note we're on 0.74.5 so if you already upgraded past that to 0.75 you may have different issues. Also note this works for us on iOS, we never really got it working well on Android before either.
In the
[email protected]
package, we added this patch which stops the Invariant Error from showing. It wasn't blocking the use of the app with React Native Debugger, but it was annoying and always at the bottom of the screen.If you're using Reanimated:
In the
[email protected]
package, we added this patch (note this should be fixed soon in a future release of React Native Reanimated as it has already gotten merged https://github.com/software-mansion/react-native-reanimated/pull/6437/files). This is related to theTypeError: Cannot convert undefined or null to object
errors people have been reporting.If you're using Expo / Expo Modules:
If you have expo-modules-core / expo in your app somewhere, you will also want to add this patch for
[email protected]
. This address an issue where it said it cannot find NativeModule or SharedObject.Also if you don't have it yet in your Dev Menu the option to Debug JS Remotely, you can install this package: https://github.com/gusgard/react-native-devsettings which will make it show up again.
Hope this helps folks who are currently unable to use React Native Debugger use it again. Good luck.
The text was updated successfully, but these errors were encountered: