react-native-template-easy-start
react-native-template-easy-start copied to clipboard
dva.js 在 react-native 简单的 template
这是一个可以使开发者非常容易上手的 react-native-template 。
- Dva 相关资料请看这里 --> Dvajs。
- react-native-router-flux 相关资料请看 -->react-native-router-flux。
如何下载?
1. 新建项目(推荐)
- 安装
yarn和react-native-cli。
npm install -g yarn react-native-cli
已安装 yarn 和 react-native-cli 的请忽略本步骤。
- 可选步骤,设置国内镜像源。
yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global
- 使用
react-native-cli初始化项目。
react-native init ExampleEasyStart --template easy-start
2. 克隆本项目
git clone [email protected]:96qbhy/react-native-template-easy-start.git
cd react-native-template-easy-start
yarn #or npm install
如何运行?
1. 安卓
react-native run-android
2. iOS
react-native run-ios
ios 仅支持在 OS X 系统进行开发,且必须安装
XCODE
APP入口文件是 app/index.js , 赶紧开始你的第一个 react-native 应用吧。