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