Unable to connect with remote debugger

后端 未结 14 1236
予麋鹿
予麋鹿 2020-11-28 18:29

I\'m using React.JS and when I do react-native run-android (with my device plugged in) I see a blank page. When I shake the device and select Debug JS Rem

14条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-28 18:49

    1. react-native start --reset-cache in one tab and react-native run-android in another
    2. adb reverse tcp:8081 tcp:8081 ( so you could add it to your scripts and just run yarn run adb-reverse)
    3. If you're using android, Instead of shake your phone a great tip is run adb commands.

    So you can run:

    • adb shell input keyevent 82 (menu option )
    • adb shell input keyevent 46 46 ( reload )

提交回复
热议问题