Getting tired of writing the same code over and over to set up new applications ? This should help ;)
- TypeScript
- Redux toolkit with RTK Query
- i18n
- React-navigation
- Styled components
- Clean folder structure
- Standard version to manage the versioning of your app
- Husky for clean commits
- More information here
If you haven't created your react-native typescript project yet :
npx react-native init MyApp --template react-native-template-typescript
And setup your git repository (otherwise husky won't be setup)
Add new scripts :
"scripts": {
...
"prepare": "husky install",
"commit": "git-cz",
"release": "standard-version"
}
Paste this at the end :
"husky": {
"hooks": {
"pre-commit": "",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"standard-version": {
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "refactor",
"hidden": false,
"section": "Refactors"
}
]
},
git clone git@github.com:Nazort/boilerplate.git && cd boilerplate
./setupProject.sh path/to/your/app/
yarn start
yarn ios / android