A starter kit for React Native

tqt-mobile-starter-kit

A starter kit for React Native

Scripts

  • run Android:
yarn android

  • run iOS:
yarn ios

  • set environments (production/staging/etc), change related configurations (default is production):
yarn env production
yarn env staging

  • update app version, for example 1.4:
yarn update-ver <latest-version>

  • update app build number, for example 5 (should be ran by Github Actions):
yarn update-build <latest-build-number>

  • validate source code
yarn validate

Update app icons & splash screens

  • install ImageMagick
brew install imagemagick

  • update src/assets/images/app-icon-1024.png

  • run

yarn update-icons

Publish app to stores with Fastlane

Android

  1. prepare credentials in the exact locations below:
android
    app
        mobile.keystore
    fastlane
        googlePlaySecretKey.json
    keystore.properties

mobile.keystore: Learn how to generate keystore here

keystore.properties: store credentials to unlock mobile.keystore

googlePlaySecretKey.json: credentials used by Fastlane to publish app to store. Learn how to generate it here

  1. build app (optional)
yarn android-build

  1. build app to apk (optional)
yarn android-build-apk

  1. build app & publish to Alpha channel
yarn android-alpha

iOS

  1. prepare credentials in the exact locations below:
ios
    .env.default

.env.default: fastlane environment variables stored here

MATCH_APP_IDENTIFIER= // all app ids

MATCH_GIT_URL= // match git url

MATCH_PASSWORD= // match password

APPLE_USERNAME= // apple username

APPLE_ITC_TEAM_ID= // apple itc team id

APPLE_TEAM_ID= // apple team id

FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD= // apple app password

FASTLANE_SESSION= // fastlane session

  1. run
cd ios && fastlane match

to initialize match & populate credentials to the git repo

  1. (update FASTLANE_SESSION)[https://docs.fastlane.tools/best-practices/continuous-integration/] by running
fastlane spaceauth -u user@email.com

  1. build app (optional)
yarn ios-build

  1. build app & publish to Testflight
yarn ios-testflight

Github Actions

  1. increase app version (for example 0.1.0 => 0.2.0)
  2. commit source code to the fastlane branch to publish the production app to Playstore Alpha channel, Appstore Testflight & get the latest production apk
  3. commit source code to the fastlane_staging branch to publish the staging app to Appstore Testflight & get the latest staging apk

Generate Privacy Policy & Terms & Conditions

https://app-privacy-policy-generator.firebaseapp.com/

npx react-native init mobile --template react-native-template-typescript

Download Details:

Author: thinhtran3588

GitHub: https://github.com/thinhtran3588/tqt-mobile-starter-kit

#react-native #react #mobile-apps

A starter kit for React Native
3.75 GEEK