After developing the React Native App it is always a good idea to test it on the real device because many time an app behave differently in the emulator then the real device. This post will cover How to Run React Native App On Real Device in Windows/Linux/Mac.
First of all, to run a debug app in your Android device you need to Enable Debugging over USB. To do this we have to do the following steps:
Find for the Build number or MIUI version and click it multiple time, until it shows you are a developer now
You will find a Developer Option direct in settings or in Additional Settings
After that Enable Developer Option and USB debugging
After doing this you have to attach your Real Device with the computer using a USB cable and run the following command on terminal.
Now run your app using
If you get a “bridge configuration isn’t available” error. Then use below command to solve
adb -s <device name> tcp:8081 tcp:8081
Here you have to replace
<device name> with your device name. You got the name using
and then run using
You will found the app running in your real device.
General Problem and Solution
If you are doing some changes and want to see in your device you have to enable the Hot/Live Reloading which can be done form the
Developer Menu. To open the Developer Menu in Real Device you just need to shack the device and it will open the Developer Menu popup for you.
This is how you can run the React Native App on Real Device. In some cases, it becomes too hectic to manage cable all the time so there is another solution to Connect Your device with the development server using Wi-Fi.
This is how you can run React Native App on Real Device. If you have anything to share please comment below or contact us here.
Hope you liked it 🙂