I am running react-native run-android
with physical android device plug in with usb port.
However, when the cable is disconnected. I can't reconnect back to metro server automatically.
I have to rerun react-native run-android
which was quite a waste of time.
Is there any command that can use to reconnect?
try in terminal adb reverse tcp:8081 tcp:8081
and after that in the Metro Bundler Window hit r
key
Check that the device is reconnected to the machine with:
adb devices
Reroute the connection to the development server with:
adb reverse tcp:8081 tcp:8081
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