Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/creatiwity/nativescript-images-generator-hook
- Owner: Creatiwity
- License: mit
- Created: 2019-04-10T12:51:20.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-26T18:16:56.000Z (almost 4 years ago)
- Last Synced: 2024-10-14T14:21:16.784Z (4 months ago)
- Topics: nativescript, nativescript-plugin
- Language: JavaScript
- Size: 60.5 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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