#packages for this project react-native-config
- HOC
- Theme
- redux
- mobx
- navigation a. Drawer b. Bottom tab c. Top tab
- API a. setup standard method
- Firebase
- Localstorage
- Authontication
|| --------------- Todo App ------------- ||
- Search
- List all notes
- At bottom add fab action
- bottom tab (custom) a. Home b. User
- Drawer (customaa )
- Editor / Add
---------------- FLOW --------------------------
/*
- Entry point
- Navigation
- Theme provider
- Authontication
- Enviroment variable
- Structure utils component store screens navigation theme assets api
- API
*/
react-native-config moment mobx mobx-react mobx-state-tree
@react-native-community/netinfo "@react-native-firebase/app": "^16.5.2", "@react-native-firebase/auth": "^16.5.2 "@react-native-firebase/messaging": "^16.5.2", react-native-permissions
```
------------------------- ADD Aliasing --------------------------
Goto => tsconfig.json
// ... other configs, if any
"compilerOptions": {
// ... other configs, if any
"baseUrl": "." ,
"paths": {
"@api/*": [
"src/api/*"
],
"@utils/*": [
"src/utils/*"
]
},
}
Install yarn add --dev babel-plugin-module-resolver
# code
Goto => babel.config.js
plugins: [
// ... other configs, if any
[
'module-resolver',
{
extensions: ['.ios.js', '.android.js', '.ios.jsx', '.android.jsx', '.js', '.jsx', '.json', '.ts', '.tsx'],
root: ['.'],
alias: {
'@api': './src/api',
'@assets': './src/assets',
'@components': './src/components',
'@scenes': './src/scenes',
'@theme': './src/theme',
'@utils': './src/utils',
},
},
],
// ... other configs, if any
],
```