Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React-Native run-android on specific device

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

like image 664
Vic Torious Avatar asked Nov 21 '16 16:11

Vic Torious


1 Answers

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

like image 135
Nerius Jok Avatar answered Oct 14 '22 07:10

Nerius Jok