Skip to content

Automatic splash screen generator for Cordova

License

Notifications You must be signed in to change notification settings

semabit/cordova-splash

 
 

Repository files navigation

cordova-splash

Automatic splash screen generator for Cordova. Create a splash screen once in the root folder of your Cordova project and use cordova-splash to automatically crop and copy it for all the platforms your project supports (currenty works with iOS, Android and Windows 10).

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 cordova-splash -g

If you are using an older version of cordova (before 7.x):

$ sudo npm install [email protected] -g

Requirements

Usage

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

$ cordova-splash

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

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

If you run a old version of Cordova for iOS and you need your files in /Resources/icons/, use this option:

$ cordova-splash --xcode-old

iOS Storyboard Images

To generate iOS storyboard images, use the following:

 $ cordova-splash --use-storyboard

Android v6

To generate splashscreens for cordova-android v6, use the following:

 $ cordova-splash --android-old

Notes:

  • Your config.ml file will not be updated by the tool (because images are automatically created in the good folders)
  • Therefore, in your config.xml, be sure to remove all lines looking like <splash src="res/screen/android/splash-land-mdpi.png" density="land-mdpi"/>

Icons

Check out cordova-icon

License

MIT

About

Automatic splash screen generator for Cordova

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%