Help manage code better
- Branch: use_connect
- Branch: use_useDispatch_useSelector
Install library:
$ yarn install
Build ios:
$ yarn pod-ios
$ yarn run-ios
Build android:
Create file local.properties in folder android, add "sdk.dir=..."
$ yarn run-android
- react-navigation
Link
. - axios
Link
. - react-redux
Link
. - redux-persist
Link
. - async-storage
Link
. - encrypted-storage
Link
. - localization
Link
.
-
Where files are shared in the project.
- A place for commonly used components in the features
- Divide Components into groups with similar characteristics
- Dimens: Common dimension in ui design
- Limits: Define text box character limit
- Spacing: Common spacing in ui design
- Type: Universal type used in all applications
- Typography: Define typography used in all applications
- Manage the UI and logic of the screens.
- Manage the app's navigator.
-
Manage houses static files (e.g images, color) used in the application.
- Where the image static files are located.
- Where the font static files are located.
- Where the language static files are located.
- Where the theme static files are located.
- This directory manages logic related to external API communication.
- My point is that only data that is used in common across multiple monitors will be saved to redux. So I separate redux from screen, to easily manage action and state of redux
- Where to manage utility files (function).
Briefly go over the various config files used in this project
- tsconfig.json: These options relate to how your TypeScript or JavaScript project is set up.
- babel.config.js: Configure import files for the project.
- .eslintrc.js: This is the configuration used to set the rule code in the project. Includes relevant configuration for use with Typescript and Prettier.
- .prettierrc.js: The config for the Prettier code formatter.