UNPKG

react-native-template-mario

Version:
55 lines (39 loc) 702 B
## React Native Template React Native 项目模板. ## 技术栈 ``` react-native + typescript + mario-meditation (redux + immutable + reselect + redux-observable + rxjs) + mario-architecture-components + react-navigation ``` ## 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文件: ``` $ yarn build `````` $ npm run build ``` 2. 实时编译typescript文件: ``` $ yarn watch `````` $ npm run watch ``` 3. 删除生成文件, 重新编译: ``` $ yarn rebuild `````` $ npm run rebuild ```