You can click the device option button, or if it doesn't exist for your device use adb shell input keyevent 82
command and select Dev Settings
from menu, and then from the section DEBUGGING
choose Debug server host & port for device
and enter your PC's IP (you can find your IP from ipconfig command for Windows) for example 192.168.1.12:8081
.
after that, you can reload your application from options menu or restart your application.
Please pay attention:
- Your device and pc must be on the same network
- Host port can be found from node window, for example:
Running Metro Bundler on port 8081.
React-native option menu:
Node window and successful Bundle loading
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…