duckhoa-uit / OnApp-Mobile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DocterCallRebuild

Setup

  • 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)

Importance before commit

You must fix all bug of ESLint

You must config git Username/Email

Command

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
  • ...

Detail command: Read script of package.json file

Base config (Now u can config on env)

  • Change App name APP_DISPLAY_NAME on env/(.dev/.prod)
  • Change App id BUNDLE_IDENTIFIER on env/(.dev/.prod)
  • Change App version VERSION_NAME on env/(.dev/.prod)
  • Change App build number VERSION_CODE on env/(.dev/.prod)
  • Change App URL API_URL on env/(.dev/.prod)

Gen app icon and Change app icon by env

Build with: rn-ml

  • Update app icon file from appicon folder
  • Run: yarn app-icon or yarn app-icon:dev
    • Android: auto change flavor script
    • IOS: Change ASSETCATALOG_COMPILER_APPICON_NAME to your respective App Icon Assets (in respective env file)

node_modules/react-native-reanimated/src/reanimated2/initializers.ts line 156: const capturableConsole = console;

About


Languages

Language:TypeScript 96.6%Language:Java 1.4%Language:JavaScript 1.1%Language:Ruby 0.5%Language:Objective-C++ 0.3%Language:Objective-C 0.1%