/Diffs

Primary LanguageTypeScript

React Native Template

React Native 项目模板.

技术栈

react-native + typescript + redux + redux-logic + redux-observable + rxjs + immutable + recompose + reselect + react-apollo

Installation

<new project name> 替换为初始化的项目名称.

react-native init <new project name> --template mario
cd <new project name>
node scripts/index.js

Happy hacking : )

scripts

  1. 编译typescript文件: $ npm run build
  2. 实时编译typescript文件: $ npm run watch
  3. 删除生成文件, 重新编译: $ npm run rebuild