react native running on devices
Running on devices
-
enable debugging over USB on android phone
-
use
adb devices
in terminal to check if device is connect well, -
for wireless debug, accessing the Dev Menu by shaking phone,
Dev Settings → Debug server host & port for device.
type in machine’s ip address and port number(e.g. 10.0.1.1:8081). useifconfig en0 | grep "inet "
to check localhost’s ip address