I have a basic application react-nativethat I run on a real Nexus 5, and I can’t find a way to enable the developer menu, which is present for iOSemulated devices as well.
https://facebook.imtqy.com/react-native/docs/debugging.html
https://facebook.imtqy.com/react-native/docs/running-on-device.html
Method 1: Using adb reverse (recommended)
You can use this method if Android 5.0 (Lollipop) is running on your device, it has USB debugging turned on and connected via USB to your development machine.
Run the following at a command prompt:
$ adb reverse tcp: 8081 tcp: 8081 Now you can use Reload JS from Make changes to the application for developers in the application without additional configuration.
When I run react-native run-android, I see this line in the terminal
Running adb -s 06adb216 reverse tcp:8081 tcp:8081
But I see NO React to the embedded application for developers
I run:
Windows 10
react-native-cli: 2.0.1
react-native: 0.42.0
My file is index.android.jsas follows:
import { AppRegistry } from 'react-native';
import Welcome from './src/modules/onboarding/components/welcome';
AppRegistry.registerComponent('mobileapp', () => Welcome);
source
share