ReferenceError: Can't find variable: __fbBatchedBridge

后端 未结 8 2008
花落未央
花落未央 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:11

    This worked for me according to documentation

    http://facebook.github.io/react-native/docs/running-on-device-android.html#content

    Using adb reverse Note that this option is available on devices running android 5.0+ (API 21).

    Have your device connected via USB with debugging enabled (see paragraph above on how to enable USB debugging on your device).

    1. Run adb reverse tcp:8081 tcp:8081

    You can use Reload JS and other development options with no extra configuration

    1. Then Run react-native run-android which will automatically start dev server on 8081 port on your dev machine if not already running.

提交回复
热议问题