Miss any of our Open RFC calls?Watch the recordings here! »

@panz3r/react-native-toolbox

1.3.0 • Public • Published

React Native Toolbox

A set of scripts to simplify React Native development

Install

yarn add -D @panz3r/react-native-toolbox

or use it directly with

npx @panz3r/react-native-toolbox <command>

Generate App icons

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 the assets folder
  • run
rn-toolbox icons

Generate App splashscreen

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 the assets folder
  • run
rn-toolbox splash

Setup Environment

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

Install

npm i @panz3r/[email protected]

Version

1.3.0

License

MPL-2.0

Unpacked Size

37.2 kB

Total Files

7

Last publish

Collaborators

  • avatar