Git Product home page Git Product logo

react-native-toolbox's Introduction

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

If you found this project to be helpful, please consider buying me a coffee.

buy me a coffee

react-native-toolbox's People

Contributors

panz3r avatar irontony avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.