A set of scripts to simplify React Native development
yarn add -D @panz3r/react-native-toolbox
or use it directly with
npx @panz3r/react-native-toolbox <command>
To generate app icons:
- create a folder named
assets
at the root of your React Native project - place an
icon.png
file (at least 1024x1024px) inside theassets
folder - run
rn-toolbox icons
To generate app splashscreen images (to be used by react-native-splash-screen
):
- create a folder named
assets
at the root of your React Native project - place an
splashscreen.png
file (at least 1242x2208px) inside theassets
folder - run
rn-toolbox splash
To setup a .env
file (to be used by react-native-dotenv
):
- create
.env.dev
and.env.prod
files (other files are supported too, be creative ;)) - run
rn-toolbox dotenv <env name> # such as 'dev' or 'prod'
N.B: running react-native start
command after might require --reset-cache
to read new env variables.
This script has been inspired by this article
Multi environment variable setup for React Native application
Made with ✨ & ❤️ by Mattia Panzeri and contributors
If you found this project to be helpful, please consider buying me a coffee.