-
Start working
## install deps
yarn
## install ios pods
yarn setup:ios
## ios
yarn ios
## android
yarn android
Add the following script to your packages.json
and reinstall dependencies to enable husky pre-commit using yarn install
"scripts": {
//...
"postinstall": "husky install",
},
Run the following command to generate App icons assets :
yarn react-native set-icon --path ./assets/logo.png --background "#FFF"
For android icon, make sure to provide a logo with more padding and generate a new app icon for android :
yarn react-native set-icon --platform android --path ./assets/android_logo.png --background "#FFF"
To generate a standard splash screen using bootsplash package.
yarn react-native generate-bootsplash assets/logo.png \
--background-color=FFFFFF \
--logo-width=150 \
--assets-path=assets
Replace Inter.ttf font file with your fonts under assets/fonts
folder
Run the following command to generate App icons assets :
yarn react-native link