React Native Run error referenceerror:can ' t find variable: _fbbatchedbridge '
React native at present looks like fire, as mobile developers, of course, need to pay attention to the latest development technology, so also follow the test, but found running red screen error, Google a bit, found the official website gives a solution, the steps are as follows:
- Make sure your PC and phone are in the same WiFi network
- Launch your react Native app from your phone.
- You see a red screen full of error errors, follow the next steps to fix it.
-
Open the Developer menu by shaking the phone or running on the command lineadb shell input keyevent 82, as shown in
-
EnterDev Settings.
-
ClickDebug server host for device
-
Manually type the IP address of your computer and the port of the local development server, the default port is 8081 (e.g. 10.0.1.1:8081)
To view your computer's IP:
- MAC: System Preferences-Network
- Windows: Open command line, enteripconfig
-
Returns and then selects againReload JS.
If everything is normal, it should be able to load the display properly. Gook luck!
React-native First Run prompt-referenceerror-can-t-find-variable-fbbatchedbridge