React-native Win7 Environment construction

Source: Internet
Author: User
Tags install node

Date: 2016-08-22 evening, Xian

1. Installing the JDK

Java Version "1.6.0_45"
Java (TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot (TM) Client VMs (build 20.45-b01, mixed mode, sharing)

2. Download the SDK

Install Android SDK separately, under FQ environment, in order to speed can choose to use Androiddevtools, download file Android-sdk_r24.4.1-windows.zip

Set Environment variables:

Android_home:\projects\react\android-sdk-windows

Path:%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem;%systemroot%\system32\windowspowershell\ V1.0\;%java_home%\bin;d:\program Files\tortoisesvn\bin;%maven_home%\bin;%android_home%\tools;%android%\ Platform-tools;D: \program Files\nodejs

3. Install node. js

Install node. JS on official website, preferably more than 4.1 version, I installed version: Node-v4.5.0-x64.msi

4. Install the react-native command-line tool REACT-NATIVE-CLI

Install git first, then right-click Git Bash here

git clone https://github.com/facebook/react-native.git, because the network original so the operation may fail for the first time, please persist in repeating continuously until successful

Open the cmd command line and execute the following command:

CD D:\PROJECTS\REACT\REACT-NATIVE\REACT-NATIVE-CLI

NPM install-g REACT-NATIVE-CLI

5. Create a project

CD D:\PROJECTS\REACT\REACT-NATIVE\REACT-NATIVE-CLI

React-native Init Android, this operation will also last for a long time, depending on the network, I was the unit performed an afternoon did not respond, delete files after the dorm to re-execute, everything is OK

6.run Android App

React-native Win7 Environment construction

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.