Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/creatiwity/nativescript-images-generator-hook

This hook will generate all images at compile time based on a simple 3x image.
https://github.com/creatiwity/nativescript-images-generator-hook

nativescript nativescript-plugin

Last synced: 4 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# Nativescript images generator hook

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

## Installation

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

## Usage

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

For instance, if you put `[email protected]` 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