Open ilyausorov opened 2 months ago
This is what worked for me for RN 0.74.1
react-native-debugger
in system. react-native-devsettings
in the project devDependency yarn add react-native-devsettings --dev
if (__DEV__) require('react-native-devsettings');
In App.tsxyarn run android
cmd + m
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? after i added changes u mentioned an able to use the debugger with reanimated, but network inspector just gets a list of "symbolicate" request, and no recorod of actual request
Using RN 0.73.6 I'm running into this issue as well.
This is what worked for me for RN 0.74.1
- Install
react-native-debugger
in system.- Install
react-native-devsettings
in the project devDependencyyarn add react-native-devsettings --dev
- Add
if (__DEV__) require('react-native-devsettings');
In App.tsx- Reinstall the app
yarn run android
- Open "react-native-debugger" app
- Open debug menu
cmd + m
- Select "(*) Debug JS Remotely"
Tried this, and not working with RN 0.73.6.
Any workaround or update on this topic? I would like to use this awesome tool with RN 0.76
I found a way with react-native 0.75.4.
You need to import the react-native-devsettings
.
You open React Native Debugger as usual, shake the device and choose Debug JS Remotely
I found a way with react-native 0.75.4. You need to import the
react-native-devsettings
.You open React Native Debugger as usual, shake the device and choose Debug JS Remotely
Hello, could you tell more about your error and how you fixed that we use react-native 0.75.4, imported react-native-devsettings in App.tsx, pressed Debug JS Remotely on an emulator, but we still have an issue
I found a way with react-native 0.75.4. You need to import the
react-native-devsettings
. You open React Native Debugger as usual, shake the device and choose Debug JS RemotelyHello, could you tell more about your error and how you fixed that we use react-native 0.75.4, imported react-native-devsettings in App.tsx, pressed Debug JS Remotely on an emulator, but we still have an issue
Can you show me the issue, i can't see your image. You should turn on the RN-Debugger Client before press Debug JS Remotely
I found a way with react-native 0.75.4. You need to import the
react-native-devsettings
. You open React Native Debugger as usual, shake the device and choose Debug JS RemotelyHello, could you tell more about your error and how you fixed that we use react-native 0.75.4, imported react-native-devsettings in App.tsx, pressed Debug JS Remotely on an emulator, but we still have an issue
Can you show me the issue, i can't see your image. You should turn on the RN-Debugger Client before press Debug JS Remotely
@datdt-026 any thoughts?
I found a way with react-native 0.75.4. You need to import the
react-native-devsettings
. You open React Native Debugger as usual, shake the device and choose Debug JS RemotelyHello, could you tell more about your error and how you fixed that we use react-native 0.75.4, imported react-native-devsettings in App.tsx, pressed Debug JS Remotely on an emulator, but we still have an issue
Can you show me the issue, i can't see your image. You should turn on the RN-Debugger Client before press Debug JS Remotely
@datdt-026 any thoughts?
I did not have that error, you should research for the error. Have you pod install after import the library dev-settings?
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
react-native@0.74.5
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
react-native-reanimated@3.15.0
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
expo-modules-core@1.12.23
. 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.