I'm trying to do the react native 'hello world', and I'm using usb debugging on my android.
I ran react-native run-android
, then react-native start
.
I can view the js file in localhost
, but get 'could not connect to development server' message on my phone.
I followed the instructions to run adb reverse tcp:8081 tcp:8081
, then realized that command doesn't exist, so I ran adb forward tcp:8081 tcp:8081
instead.
Still no luck. Using react-native@0.22.0, ubuntu 14.04. My phone is nexus 5 on android 6.0.1.
How can I allow my phone to access my localhost
?
By the way, it is working over wifi, but I'd like to get it working over usb.