Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nativescript - Changing the launch screen

Tags:

nativescript

There is a way to change de launch screen without have to change each image one by one? Like the doc says I used the tool: http://nsimage.brosteins.com/ to change the icon, but to change the splash screen I have to change 20 images, there isn't an easiest way?

like image 207
Matías González Avatar asked Oct 17 '16 14:10

Matías González


1 Answers

The easiest way to do this; is on the community site... http://nativescript.rocks

Actually the images sub-site specifically. http://images.nativescript.rocks It will allow you to post a single image and it will generate all the proper size screens for both android and ios.

The second way to do it is to use the ns command line (tns was renamed to ns in late 2020)

ns resources generate splashes ../SourceImage.png --background "#FFFFFF"

You want to use a source image of at least 1024x1024 as Apple requires this for the main app page image, otherwise you will be missing this size and you won't be able to submit the app to Apple.


Please note: no matter which way you generate your screens; you should always DE-INSTALL the app from your test devices so that it can do a full reinstall so that you do see the new splash screens.


Disclosure: I'm the developer of http://nativescript.rocks group of sites.

like image 86
Nathanael Avatar answered Oct 02 '22 00:10

Nathanael