Skip to content

This hook will generate all images at compile time based on a simple 3x image.

License

Notifications You must be signed in to change notification settings

Creatiwity/nativescript-images-generator-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nativescript images generator hook

Nativescript hook that generates App_Resources images based on a single high resolution image.

Installation

npm install nativescript-images-generator-hook --save-dev

Usage

Put all your 3x PNG images in App_Resources/images.

For instance, if you put navbar_logo@3x.png in this folder, it will be available as res://navbar_logo. If you put an image without scale suffix, it will use it as a x1 image. You can provide any integer scale from 1 to 5.

License

MIT License - Copyright (c) 2020 Creatiwity

About

This hook will generate all images at compile time based on a simple 3x image.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •