React-native First Run prompt-referenceerror-can-t-find-variable-fbbatchedbridge

Source: Internet
Author: User

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:

  1. Make sure your PC and phone are in the same WiFi network
  2. Launch your react Native app from your phone.
  3. You see a red screen full of error errors, follow the next steps to fix it.
  4. Open the Developer menu by shaking the phone or running on the command lineadb shell input keyevent 82, as shown in

  5. EnterDev Settings.

  6. ClickDebug server host for device

  7. 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
  8. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.