@jbcampbell/rn-splash

2.0.4 • Public • Published

rn-splash

Automatic splash screen generator for React Native. Based on cordova-splash. Create a splash screen once in the root folder of your React Native project and use rn-splash to automatically crop and copy it for all the platforms your project supports.

The splash screen image should be 2208x2208 px with a center square of about 1200x1200 px. The image may be cropped around the center square. You can also use larger images with similar proportions.

Installation

$ sudo npm install rn-splash -g

Requirements

  • ImageMagick installed (Mac: brew install imagemagick, Debian/Ubuntu: sudo apt-get install imagemagick, Windows: See here, install "Legacy tools")
  • React Natives app.json file must exist in the root folder

Usage

Create a splash.png file in the root folder of your RN project and run:

$ rn-splash

You also can specify manually a location for your config.xml or splash.png:

$ rn-splash --config=config.xml --splash=splash.png

Icons

Check out app-icon

License

MIT

Package Sidebar

Install

npm i @jbcampbell/rn-splash

Weekly Downloads

0

Version

2.0.4

License

MIT

Unpacked Size

12.3 kB

Total Files

9

Last publish

Collaborators

  • jbcampbell