react-native-template-lightbase
v1.16.0
Published
React native template for bootstrapping react native apps internally at lightbase
Downloads
516
Maintainers
Readme
Lightbase React Native Template
Initialise new project with the template
npx react-native init LightbaseProjectName --template react-native-template-lightbase
yarn install
- will also configure husky pre commits for semantic realse conformity
Pre-requisites after initialisation
Semantic relases and commitlint with husky
- appcenter build scripts manage the semantic relases with automated changelogs and release commits
- commits need to conform to the commitlint config
chore: feat: fix:
types are currently only supported
Setup git branches
- development branch (main) - alpha release cycle
- acceptance branch - rc pre-release cycle
- production branch - main release cycle
Create Appcenter projects for android and iOS
- ENV VARIABLES within appcenter
- GITHUB_TOKEN - used for semantic relases
- SKIP_FLIPPER=YES - improves iOS build times considerably
- Add build pipelines for android and ios (development and production)
Setup Codepush for iOS and android projects
- Copy codepush staging tokens to env.staging and .env
- Copy codepush production tokens to env.staging and .env
Setup sentry project
- Add new sentry project
- run
npx @sentry/wizard -i reactNative -p ios android
- App.js does not exist so patch will not happen, copy sentry dsn to index.js file
Create private github repo for fastlane match provisioning profiles and certificate handling
- TODO
Updating Template
- Template should be updated on any major RN release
- Add GITHUB_TOKEN to your bash or zshl profile
- run
npx semantic-release --no-ci