It feels react so hard qaq
First, the development environment construction requirements
Installing the React Native development environment on the Windows operating system requires the installation of the Jdk,android SDK on your PC, as well as a set of C + + compilers installed on your computer, and if not, it is recommended to install Microsoft Visual Studio Community 2015
Second, the environment construction
1. Install JDK (requires 1.8 or higher)
Download the 32-bit or 64-bit JDK for your computer version, the first is the JDK, and the second is the JRE, which is recommended to be installed in a different folder under the same folder. You can modify the installation directory when you install.
2. JDK environment variable Configuration
(1) Select Computer-Properties-Advanced system Settings-advanced-environment variables
(2) System variable-new Java_home variable. Variable value fill in the JDK installation directory (I am C:\ProgramFiles\Java\jdk1.8.0_131)
(3) System variable-look for Path variable-edit, enter%java_home%\bin;%java_home%\jre\bin at the end of the variable value or at the front;
(4) System variable-new CLASSPATH variable. Variable values are filled in.; %java_home%\lib;%java_home%\lib\tools.jar (Note that there is a point in the front)
(5) Verify that the configuration is successful, run cmd, enter java-version (there are spaces between Java and-version), display version information as shown in the installation and configuration success
React Native Environment Building under windows