React-native Development Win Environment construction

Source: Internet
Author: User
Tags install node

1. Can be installed according to the official installation instructions, personally feel a little bit of English is fully capable of document installation procedures (https://facebook.github.io/react-native/docs/ getting-started.html), the specific environment variable how to configure the Internet one of the search

If you want to quickly install Node,python,java, and you do not want to set their environment variables, you can try the steps in the official installation steps (you need to install an application that executes Choco)

2. Problem solving

Run for the first time

React-native run-android

will report the following error:

You can do this at the following steps:

CD Project
NPM Uninstall React-native
NPM install--save [email protected]
NPM Uninstall--save babel-preset-react-native
NPM install--save [email protected]

Don't worry, the problem is not all solved, after resolving the previous error, the following problems occur:

Unable to load script from assets index.android.bundle. Make sure your bundle is packaged correctly

You can do this at the following steps:

React-native Link

React-native Run-android

In the end you will see a simulation of the pages that will turn out like this:

Done!!!

Attention to detail:

1. When the project file is introduced, the new project is selected, then the React-native project path is put in, instead of the second way of selecting the start interface, the existing project is added, which is the wrong way

2. When running the simulator, some computers will report the following error,

EMULATOR:ERROR:X86 emulation currently requires hardware acceleration!
Please ensure the Intel HAXM is properly installed and usable.
CPU Acceleration Status:hax kernel module is not installed!

At this time need to turn on the computer CPU virtual technology, how to open, their own Baidu can

React-native Development win environment build

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.