Project Initialization

Android

  • In the project directory, run the command in terminal yarn

  • Launch Android Studio and perform Gradle sync, then build the project

  • Run the command yarn start in the terminal in the project directory

  • Launch a new terminal instance and run the command yarn android

Note

Note: before running the yarn android command, make sure you have Android SDK installed, an emulator configured and running, or a real device connected.

iOS

  • In the project directory, run the command in terminal yarn

  • Navigate to the ios directory and run the command pod install in terminal. Make sure you have CocoaPods installed

  • Launch XCode and build the project

  • Return to the project root directory and run the command yarn start in terminal

  • Launch a new terminal instance and run the command yarn ios

Note

Note: to run in a specific simulator, use the simulator attribute, e.g.: yarn ios --simulator="iPhone 11 Pro Max"

Main Commands

  • yarn start - launch Metro server for asset loading and change tracking (Debug mode only)

  • yarn android - install and launch Debug version of the application on a device from the adb devices -l list

  • yarn ios - install and launch Debug version on an iOS device

  • yarn lint - check for linter errors

  • yarn lint:fix - fix linter errors that support automatic correction

Note

Note: the project has eslint installed and configured to maintain a unified code style. A pre-commit hook is also configured in the repository that prevents pushing commits containing linter errors (use the --no-verify attribute when committing to bypass the hook)