Is it possible to use the run-android
command for one specific device only?
For example, if I have three devices (or emulators) connected and I want to use run-android
on only one of them?
Maybe something like adb install -s DEVICE_NUMBER
?
Thanks in advance
To run react-native application on optional device you can specify some flags in run command. To see available add --help:
react-native run-android --help
Then you can specify your device id throught --deviceId
react-native run-android --deviceId=DEVICE_ID
To see available devices ids'
adb devices
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With