tsrntemp
v1.2.5
Published
react-native模版项目,通过官方脚手架快速搭建项目,已配置好路由,请求库,图标,缓存等常用工具。
Downloads
640
Maintainers
Readme
:space_invader: React Native Template TypeScript
English | 简体中文
:arrow_forward: usage
npx react-native init ProjectName --template tsrntemp
React Native <=> Template Version
| React Native | Template | | ------------ | -------- | | 0.72 | 1.2.* | | 0.71 | 1.1.* | | 0.67 | 1.0.* |
The default of this project is TS building, integrated routing, caching, request tool and icon tool
- file directory
- src
- src/assets
Static resource folder
- src/components
Public component folder
- src/config
Configuration folder
- src/iconfont
Icon font folder
- src/pages
All of the page folders
- src/route
Route the page folder
- src/types
Type statement folder
- src/utils
Tool Class Folders
- src/requestUtils
Request tool base class
react-navigation
icont
- The configuration file for the icon is the iconfont.json file located in the root directory
- Use reference
requset
- The request library used is
umi-reuest
- Use reference
storage
- The cache library used is
react-native-mmkv
and is a library that returns data directly, unlike the promise thatasync-storage
is returned - Use reference
size-matters
- Size adaptation
- Use reference