ReferenceError: Can't find variable: __fbBatchedBridge

后端 未结 8 2134
花落未央
花落未央 2021-02-05 00:55

Using just the default code from react-native init AwesomeProject, when I run the app I get the \'ReferenceError: Can\'t find variable: __fbBatchedBridge (line 1 in

8条回答
  •  感动是毒
    2021-02-05 01:25

    I had the same issue while using Visual Studio Android Emulator. When the red screen shows up type in the command line

    adb shell input keyevent 82
    

    This will trigger the shake event and launch the dev menu

    Then hit Dev Settings > Debug server host & port for device and enter :8081. If for some reason you cannot type in the field you can trigger the text action in the command line by using

    adb shell input text :8081
    

提交回复
热议问题