How to Run React Native App On Real Device Android

Debug App in Real Android Device using USB Connection

After developing the React Native App it is always a good idea to test it on the real device because many times an app behaves 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.

Enable Debugging Over USB option

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:

Go to Settings>About Phone

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

Attach your Real Device

After doing this you have to attach your Real Device with the computer using a USB cable and run the following command on terminal.

adb devices

Run the App

Now run your app using

react-native run-android

Known Issue

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 adb devices.

Now re-run the app using

react-native run-android

Screenshot of the app running in the real device

Developer Menu

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 🙂


Related Posts

2 thoughts on “How to Run React Native App On Real Device Android”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.