一.準(zhǔn)備工作創(chuàng)建一個(gè)React Native安裝文件夾
二.安裝Python
????????? 1.下載安裝包(2.xxx版本):https://www.python.org/downloads/
????????? 2.安裝到React Native下的Python2目錄下
三.安裝Node
????????? 1.下載安裝包:http://nodejs.cn/download/
????????? 2.安裝到React Native下的Node目錄
四.安裝完node后建議設(shè)置npm鏡像以加速后面的過程
???????? npm config set registry https://registry.npm.taobao.org --global
???????? npm config set disturl https://npm.taobao.org/dist --global
五.Yarn脓豪、React Native的命令行工具(react-native-cli)
?????????? 1.Yarn是Facebook提供的替代npm的工具油狂,可以加速node模塊的下載讳推。ReactNative的命 令? 行工具用于執(zhí)行創(chuàng)建、初始化、更新項(xiàng)目、運(yùn)行打包服務(wù)(packager)等任務(wù)。
????????????? npm install -g yarn react-native-cli
?????????? 2.安裝完yarn后同理也要設(shè)置鏡像源:
????????????? yarn config set registry https://registry.npm.taobao.org --global
????????????? yarn config set disturl https://npm.taobao.org/dist --global
六.安裝JDK1.8
?????????? 1.下載安裝包:
?????????????? http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
七.安裝git
???????? 1.下載安裝包:https://git-for-windows.github.io/
八.Android Studio設(shè)置和環(huán)境變量的配置:
????????? http://reactnative.cn/docs/0.49/getting-started.html#content