- Setup development environment React Native CLI
- We recommended to use yarn
- Ruby version: 2.7.6 (recommended use rbenv to manage the Ruby programming language)
Before run script, you must navigate to your project :
cd <your_project_folder>
- Install dependencies:
yarn
- Run Android:
yarn android:dev
(dev/prod by default) - Run IOS:
yarn ios:dev
(dev/prod by default) - Build apk Android:
yarn apk:dev
(dev/prod by default) - Build aab Android;
yarn aab:dev
(dev/prod by default) - Start server:
yarn start
- Install library then pods IOS:
yarn add <your_library>
- Change splash logo
- Step 1: Get file .PNG to change then rename it to splash.PNG
- Step 2: Copy and pate to splash folder
- Step 3: Run command:
yarn splash
- ...
- Change App name
APP_DISPLAY_NAME
onenv/(.dev/.prod)
- Change App id
BUNDLE_IDENTIFIER
onenv/(.dev/.prod)
- Change App version
VERSION_NAME
onenv/(.dev/.prod)
- Change App build number
VERSION_CODE
onenv/(.dev/.prod)
- Change App URL
API_URL
onenv/(.dev/.prod)
Build with: rn-ml
- Update app icon file from appicon folder
- Run:
yarn app-icon
oryarn app-icon:dev
- Android: auto change flavor script
- IOS: Change ASSETCATALOG_COMPILER_APPICON_NAME to your respective App Icon Assets (in respective env file)