React Native - Redux toolkit tree - boilerplate
npm install create-rn-redux-toolkit-boilerplate- React Native
- React Navigation 5
- Redux-toolkit
- TypeScript
- Flipper-ready
- Reactotron-ready
- Codepush
- Sentry
- .ENV
- Husky
- Eslint + prettier
- Code generator
- Basic Authentication
- Redux API thunk (A thunk middleware to communicate with API and redux-toolkit)
- Requesting / Request success / Request failure are handled automatically
- Basic CRUD with redux-thunk are handled automatically
- Global Error handler
- Global App Notification
-
Install:
``bashClone the template
yarn create rn-redux-toolkit-boilerplate YourAppRename project & bundle identifier of android (For iOS, please use xCode)
npx react-native-rename "Hello World" -b com.yourorganization.hellowordRemove cache
watchman watch-del-all
yarn start --reset-cacheInstall pod deps
cd ios && pod install
`
Usage:
`bash`iOS
yarn iosandroid
yarn androidclear cache
yarn cleanlint
yarn lintBuild APK android production:
yarn build-production:android
``
yarn generate
& production
- ios: Open Xcode. Build settings -> User-defined -> CODEPUSH_KEY
- android: android/app/build.gradle -> BuildTypes block$3
- Add sentry DSN in .env file$3
- src/config/app-config`