diff --git a/releases/next/docs/running-on-device.html b/releases/next/docs/running-on-device.html index 6c623894257..7abf165cb21 100644 --- a/releases/next/docs/running-on-device.html +++ b/releases/next/docs/running-on-device.html @@ -63,17 +63,21 @@ List of devices attached emulator-5554 offline # Google emulator 14ed2fcc device # Physical device
Seeing device in the right column means the device is connected. You must have only one device connected at a time.
Type the following in your command prompt to install and launch your app on the device:
If you get a "bridge configuration isn't available" error, see Using adb reverse.
Hint
You can also use the
React Native CLIto generate and run aReleasebuild (e.g.react-native run-android --configuration Release).
You can also iterate quickly on a device by connecting to the development server running on your development machine. There are several ways of accomplishing this, depending on whether you have access to a USB cable or a Wi-Fi network.
You can use this method if your device is running Android 5.0 (Lollipop), it has USB debugging enabled, and it is connected via USB to your development machine.
You can also iterate quickly on a device using the development server. You only have to be on the same Wi-Fi network as your computer. Shake the device to open the Developer menu.
Run the following in a command prompt:
You can now use Reload JS from the React Native in-app Developer menu without any additional configuration.
You can also connect to the development server over Wi-Fi. You'll first need to install the app on your device using a USB cable, but once that has been done you can debug wirelessly by following these instructions. You'll need your development machine's current IP address before proceeding.
You can also iterate quickly on a device by connecting to the development server running on your development machine. There are several ways of accomplishing this, depending on whether you have access to a USB cable or a Wi-Fi network.
You can find the IP address in System Preferences → Network.
You can use this method if your device is running Android 5.0 (Lollipop), it has USB debugging enabled, and it is connected via USB to your development machine.
Open the command prompt and type ipconfig to find your machine's IP address (more info).
Run the following in a command prompt:
You can now use Reload JS from the React Native in-app Developer menu without any additional configuration.
You can also connect to the development server over Wi-Fi. You'll first need to install the app on your device using a USB cable, but once that has been done you can debug wirelessly by following these instructions. You'll need your development machine's current IP address before proceeding.
Open a terminal and type /sbin/ifconfig to find your machine's IP address.
You can find the IP address in System Preferences → Network.
Open the command prompt and type ipconfig to find your machine's IP address (more info).
Open a terminal and type /sbin/ifconfig to find your machine's IP address.