Skip to content
This hook will generate all images at compile time based on a simple 3x image.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.editorconfig
.gitignore
LICENSE
README.md
package-lock.json
package.json
postinstall.js
preuninstall.js

README.md

Nativescript images generator hook

Nativescript hook that generates platforms 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) 2019 Creatiwity

You can’t perform that action at this time.