1.0.0 • Published 6 years ago

react-native-template-common v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

react-native-template-common

react-native 模版项目脚手架

项目信息说明

这是一个集成了redux的react-native模板项目,使用者能够通过简单的命令进行项目的初始化,在初始化之后就可以运行项目在实体机或者虚拟机上面, 开发者在使用过程中,可以pages中开发业务组件

如何使用

1.生成项目
react-native init projectName --template common
2.运行项目
react-native run-android
或者  
react-native run-ios

之后就可以在设备上看到初始化的app

目录结构说明

|mock------------------mock数据服务器
|src-------------------源代码
  |actions--------------redux中action
  |assets---------------静态资源文件,包括字体、图片等文件
  |components-----------组件,常用组件,根据自己的业务进行组件的封装
  |constants------------常量,系统中使用的常量
  |network--------------网络请求库
  |pages----------------业务开发页面,在这里可以写自己的页面
  |reducers-------------reducers文件夹
  |stores---------------redux中的store
  |utils----------------常用工具类,方法
  |routerConfig.js------路由跳转配置文件
  |routerManager.js-----路由配置管理文件
|.babelrc---------------babel配置文件
|.editorconfig----------编辑器配置文件
|.eslintignore----------eslint代码检查忽略文件
|.eslintrc--------------eslint检查项目配置文件
|.gitignore-------------git提交忽略文件内容配置文件
|App.js-----------------入口文件
|dependencies.json------生产依赖
|devDependencies.json---开发依赖
|package.json-----------npm init 
|README.md--------------项目信息说明文件

将会自动生成默认的配置

1.0.0

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago