Windows下快速搭建React-native运行环境

安装JDK

网上找教程 ,同时配置环境变量。 

安装Android stdio或Intellij IDEA

网上找教程 

 安装SDK

网上找教程,同时配置环境变量 。(最好详细一点的)

安装node.js 

 下载,版本最好在4.0以上。

安装python

版本必须是2.xx的格式,不能是3.xx格式(当前不支持),下载 

使用国内镜像源加速

 打开Windows下的cmd.exe,输入 npm config set registry=https://registry.npm.taobao.org

安装yarn,同时配置国内镜像

npm install -g yarn

yarn config set registry https://registry.npm.taobao.org

安装 react-native-cli 

 npm install -g react-native-cli

 创建项目

 React-native init [项目名称]

运行项目

进入项目中,react-native run-android 

你可能感兴趣的:(Windows下快速搭建React-native运行环境)