React Native Dev Menu on Android Nexus 5 Device -


i have basic react-native app running on real nexus 5 , cannot find way enable developer menu present ios , emulated devices.

https://facebook.github.io/react-native/docs/debugging.html

https://facebook.github.io/react-native/docs/running-on-device.html

method 1: using adb reverse (recommended)
can use method if device running android 5.0 (lollipop), has usb debugging enabled, , connected via usb development machine.

run following in command prompt:

$ adb reverse tcp:8081 tcp:8081 can use reload js react native in-app developer menu without additional configuration.

when run react-native run-android see line in terminal

running adb -s 06adb216 reverse tcp:8081 tcp:8081

but see no react native in-app developer menu

i running:

windows 10 react-native-cli: 2.0.1 react-native: 0.42.0 

my index.android.js file looks this:

import { appregistry } 'react-native'; import welcome './src/modules/onboarding/components/welcome';  appregistry.registercomponent('mobileapp', () => welcome); 

to work android device or simulator without directly accessing hardware or click event, can pass input device adb adb shell input keyevent, either event_code or string sent device.

more information given @ android debug bridge or adb shell input

to open menu control, please use adb shell input keyevent 82 command.

please let me know if need more information on this.

regards, durga


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -