<% if (isJekyll) { %>--- title: tns resources generate icons position: 11 ---<% } %>
Generates all icons for Android and iOS platforms and places the generated images in the correct directories under App_Resources/<platform>
directory.
Usage | Synopsis |
---|---|
$ tns resources generate icons <Path to image> |
Generate all icons for Android and iOS based on the specified image. |
--background
Sets the background color of the icon. When no color is specified, a default value oftransparent
is used.<Color>
is a valid color and can be represented with string, likewhite
,black
,blue
, or with HEX representation, for example#FFFFFF
,#000000
,#0000FF
. NOTE: As the#
is special symbol in some terminals, make sure to place the value in quotes, for example$ tns resources generate icons ../myImage.png --background "#FF00FF"
.
<Path to image>
is a valid path to an image that will be used to generate all icons.
<% if(isHtml) { %>
Command | Description |
---|---|
install | Installs all platforms and dependencies described in the package.json file in the current directory. |
platform add | Configures the current project to target the selected platform. |
platform remove | Removes the selected platform from the platforms that the project currently targets. |
platform | Lists all platforms that the project currently targets. |
prepare | Copies common and relevant platform-specific content from the app directory to the subdirectory for the selected target platform in the platforms directory. |
resources update | Updates the App_Resources/Android internal folder structure to conform to that of an Android Studio project. |
resources generate splashes | Generates splashscreens for Android and iOS. |
<% } %> |