nativescript-image-cache-media
A plugin for caching web images on Android and iOS
npm i --save nativescript-image-cache-media
- Version: 1.0.6
- GitHub: https://github.com/NNieto/nativescript-image-cache-media
- NPM: https://www.npmjs.com/package/nativescript-image-cache-media
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
Nativescript-image-cache-media
A plugin for caching web and local images on Android and iOS
Using Picasso on Android and SDWebImage on iOS is a simple library that uses the nativescript image component and just adding a cache funcionality. Inspired by nativescript-web-image-cache and nativescript-image-cache-it plugins, Feel free to contribuite or suggest changes.
License
This plugin is licensed under the MITlicense by Alejandro Nieto
Installation
To install type
tns plugin add nativescript-image-cache-media
Usages
You can use all the nativescript native image module, just set the imageUri property.
Example
<Page xmlns="http://schemas.nativescript.org/tns.xsd" xmlns:IM="nativescript-image-cache-media">
<StackLayout>
<IM:ImageCacheMedia placeholder="~/resources/images/placeholder.png" stretch="aspectFill" imageUri="{{ photo_url }}"/>
</StackLayout>
</Page>