React Native template for a quick start with TypeScript
- Create a new react-native App with this template
$ npx react-native init MyApp --template react-native-template-vis-typescript
- Run app
$ yarn react-native run-ios
$ yarn react-native run-android
Note: currently react native cli support autolinking, do not need the command react-native link
anymore, it may cause build error after you run the command.
If the library do not support the autolinking, edit the config in react-native.config.js.
$ npx react-native init MyApp --template file://ThePathToTemplate
ex:
$ npx react-native init MyApp --template file:///Users/username/Projects/react-native-template-vis-typescript
- Navigator -> react-navigation
- Icons -> react-native-vector-icons
- Persist -> @react-native-community/async-storage + our own
useAsyncStorage
(including in hooks folder)
-
UI components -> react-native-base
-
Image picker -> react-native-image-crop-picker
-
Maps -> react-native-map
-
Permissions -> react-native-permissions
-
OpenGL -> gl-react-native-v2
-
Pop Dialogs -> react-native-pop-dialog
-
Dynamic navigator tabs -> react-native-tab-view