Question : react native run android on physical device
Answered by : khan-omar
# Plug in your usb with your phone and laptop
# Set Developer Option: On
# Set Usb Debugging: On
# Go to CMD and Direct it to your project path
$ adb devices
List of devices attached
emulator-5554 offline # Google emulator
14cdd2cc device # Physical device
#use adb reverse
$ adb -s <device name> reverse tcp:8081 tcp:8081
$ npx react-native run-android
Try:
$ react-native run-android --deviceId=14cdd2cc
$ npx react-native start
Note: Enter your device name.
Source : | Last Update : Sun, 03 Dec 23
Question : react native run real device
Answered by : harshvardhan-jain
Through USB debugging:
adb -s <device name> reverse tcp:8081 tcp:8081
(To find device name : *adb devices*)
Source : | Last Update : Wed, 22 Dec 21
Question : React native run on android device
Answered by : stormy-sloth-n5bdkqwtkcla
adb -s <device name> reverse tcp:8081 tcp:8081
Source : | Last Update : Wed, 02 Mar 22