English | 简体中文
npx react-native init ProjectName --template tsrntemp
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
- The configuration file for the icon is the iconfont.json file located in the root directory
- Use reference
- The request library used is
umi-reuest
- Use reference
- 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 adaptation
- Use reference