1.2.5 • Published 1 year ago
tsrntemp v1.2.5
: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