Unable to connect with remote debugger

后端 未结 14 1267
予麋鹿
予麋鹿 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:44

    Try adding this

    package.json

    devDependencies: {
    //...    
        "@react-native-community/cli-debugger-ui": "4.7.0"
    }
    

    Terminate everything.

    • npm install
    • npx react-native start
    • npx react-native run-android

    Reference: https://github.com/react-native-community/cli/issues/1081#issuecomment-614223917

提交回复
热议问题