Skip to content

wanngzelin/RNTemplate

Repository files navigation

👾 React Native Template TypeScript

English | 简体中文

▶️ 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/assetsStatic resource folder
  • src/componentsPublic component folder
  • src/configConfiguration folder
  • src/iconfontIcon font folder
  • src/pagesAll of the page folders
  • src/routeRoute the page folder
  • src/typesType statement folder
  • src/utilsTool Class Folders
  • src/requestUtilsRequest 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
storage
  • The cache library used is react-native-mmkv and is a library that returns data directly, unlike the promise that async-storage is returned
  • Use reference
size-matters