I run my react native application on my device (iPhone 6) and it loads fine. But when I enable remote debugging, it seems to connect fine to debugger but gets stuck on a blank screen.
As soon as I turn off remote debugging, everything loads fine.
I am on react-native 0.40.0.
Please help!
Debugging on a device with Chrome Developer Tools If you're using Create React Native App or Expo CLI, this is configured for you already. On iOS devices, open the file RCTWebSocketExecutor.m and change "localhost" to the IP address of your computer, then select "Debug JS Remotely" from the Developer Menu.
Plug in your device via USB # Let's now set up an Android device to run our React Native projects. Go ahead and plug in your device via USB to your development machine. Now check that your device is properly connecting to ADB, the Android Debug Bridge, by running adb devices.
If you're using Create React Native App or Expo CLI, console logs already appear in the same terminal output as the bundler. If you're using Create React Native App or Expo CLI, this is configured for you already.
Root access is required for the use in real device. Note: the React Developer Tools Chrome extension does not work with React Native, but you can use its standalone version instead. Read this section to learn how.
There can be many reasons, in my case it was the cache that was creating problem. Suggested Solutions:-
gradlew clean
' in the cmdreact-native start --reset-cache
)These steps will fix the problem!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With