
You’ll see a red screen with an error. Open your React Native app on your device. Make sure your laptop and your phone are on the same Wi-Fi network. Open a terminal and type /sbin/ifconfig to find your machine’s IP address. You’ll need your development machine’s current IP address before proceeding. 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 can also connect to the development server over Wi-Fi. You can now use Reload JS from the React Native in-app Developer menu without any additional configuration. Next, check the manufacturer code by using lsusb (on mac, you must first install lsusb). Go ahead and plug in your device via USB to your development machine. Let’s now set up an Android device to run our React Native projects. You can then go back to Settings → Developer options to enable “USB debugging”.
To enable USB debugging on your device, you will first need to enable the “Developer options” menu by going to Settings → About phone and then tapping the Build number row at the bottom seven times. You will need to enable USB Debugging on your device in order to install your app during development. Most Android devices can only install and run apps downloaded from Google Play, by default. Step 6 - Connecting Android Device to Computer Enable Debugging over USB
If everything is set up correctly, you should see your new app running in your Android device shortly.