Nativescript: add icon and specify name

1.8k views Asked by At

How would i add a custom icon with a given name to my nativescript project using the tns resources generate icons-command

$tns resources generate icons ~/myfolder/myspecialicon.png

Say i want the command to place the icon(s) in the correct folders maintaining the name myspecialicon.xxx instead of just overwriting the default icon.png?

Cheers

Lasse

1

There are 1 answers

0
Tiago A. On

That only generates the app icon. To generate other icons (and other image assets, really) I recommend the online tool http://images.nativescript.rocks/.

It generates assets for both Android and iOS. All you have to do is grab the result and merge it into your project's App_Resources. I know it is not ideal but it's the best workflow I found so far.