diff --git a/docs/running-on-device-android.html b/docs/running-on-device-android.html index cbdb86bf635..1213a10864e 100644 --- a/docs/running-on-device-android.html +++ b/docs/running-on-device-android.html @@ -1,7 +1,7 @@ -
The easiest way to develop on a device is by USB debugging. First, make sure you have USB debugging enabled on your device. Once debugging is enabled on the device you can use react-native run-android in the same way as with emulator to install and launch your React Native app on the connected device.
You can check that your device has been successfully connected by running adb devices:
You'll need this in order to install your app on your device. First, make sure you have USB debugging enabled on your device.
Check that your device has been successfully connected by running adb devices:
device means the device is connected. Android - go figure :)
You can also iterate quickly on device using the development server. Follow one of the steps described below to make your development server running on your laptop accessible for your device.
Hint
Most modern android devices don't have a hardware menu button, which we use to trigger the developer menu. In that case you can shake the device to open the dev menu (to reload, debug, etc.)
Note that this option is available on devices running android 5.0+ (API 21).
Have your device connected via USB with debugging enabled (see paragraph above on how to enable USB debugging on your device).
adb reverse tcp:8081 tcp:8081Reload JS and other development options with no extra configurationadb shell input keyevent 82 from the command line.Dev Settings.Debug server host for device.ipconfig to find your machine's IP address (more info).Reload JS.