Project Initialization
Android
In the project directory, run the command in terminal
yarnLaunch Android Studio and perform Gradle sync, then build the project
Run the command
yarn startin the terminal in the project directoryLaunch 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
yarnNavigate to the
iosdirectory and run the commandpod installin terminal. Make sure you have CocoaPods installedLaunch XCode and build the project
Return to the project root directory and run the command
yarn startin terminalLaunch 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 theadb devices -llistyarn ios- install and launch Debug version on an iOS deviceyarn lint- check for linter errorsyarn 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)