RN TS Boilerplate
Search…
CLI Tools

Generators

1
yarn generate
Copied!
Generators 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

1
yarn set
Copied!
This 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.
Pictures that you want to use as app icon or as a splash screen logo need to be inside src/assets/images.

Git Hooks

1
yarn init-husky
Copied!
This 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

1
yarn test
Copied!
Unit tests specified in the */tests/.ts files throughout the application are run.

Linting

1
yarn lint
Copied!
Lints your typescript code.
1
yarn lint:fix
Copied!
Tries to fix lint issues in src directory.

Typescript

1
yarn checkTs
Copied!
Checks for typescript errors in the code base.