CLI Tools
Generators
yarn generateGenerators in this template are used to create boilerplate Component and redux toolkit sices Codes. You can also run yarn generate <part> to skip the initial CLI input.
Setters
yarn setThis command is used to set native related assets for your app. One pain point of working with react native is generating app icons with their corresponding platform size guidelines. By using this command you will be able to generate both Android and IOS app icons as well as splash screen icons based on the platform recommended size guideline just from one picture.
Git Hooks
yarn init-huskyThis command will initiate a new git repository for your project if it doesn't exist currently and sets up husky so you can utilize pre commit and push hooks.
Unit Testing
yarn testUnit tests specified in the */tests/.ts files throughout the application are run.
Linting
yarn lintLints your typescript code.
yarn lint:fixTries to fix lint issues in src directory.
Typescript
yarn checkTsChecks for typescript errors in the code base.
Last updated
Was this helpful?