window搭建react-native开发环境
2017-06-03 11:47
507 查看
源码链接:https://github.com/phypor/react-web-demo
1.设置下载器配置和安装依赖包
2.下载android-sdk
3.安装java1.8
4.创建react-native项目
1.设置下载器配置和安装依赖包
npm config set registry https://registry.npm.taobao.org --global npm config set disturl https://npm.taobao.org/dist --global npm install -g yarn react-native-cli yarn config set registry https://registry.npm.taobao.org --global yarn config set disturl https://npm.taobao.org/dist --global
2.下载android-sdk
设置环境变量android_home 值为D:\Program Files (x86)\Android\android-sdk 上面路径是你解压后的sdk路径。
3.安装java1.8
4.创建react-native项目
可以通过执行react-native init testdemo 创建项目,testdemo是你的项目名字。 本文直接通过git clone https://github.com/phypor/react-web-demo 拉取代码。执行流程查看 https://github.com/phypor/react-web-demo/blob/master/README.md 。如何可以运行就没有问题了。
相关文章推荐
- React Native开发环境搭建——window
- Window平台下React Native 开发环境搭建
- React Native Window 开发环境搭建图文详解
- facebook react native 开发-----win7,mac环境搭建实践
- Windows下React Native Android开发环境的搭建
- React Native Mac上搭建Android开发环境
- Win7上React Native Android开发环境搭建
- ReactNative 搭建开发环境
- window环境下搭建react native及相关插件
- React—native+Android环境搭建和开发配置(Mac)
- windows 下搭建react-native android 开发环境
- [React Native混合开发]React Native for iOS之环境搭建
- react-native如何搭建开发环境搭建上手教程(转)
- windows下搭建React Native for Android 开发环境
- 在Windows下搭建React-Native Android开发环境
- React-Native 学习系列课程笔记(React-Native开发环境搭建)