Home

Awesome

NativeScript Image Zoom

npm npm Build Status

Installation

NativeScript 7x

NativeScript 6<

tns plugin add nativescript-image-zoom

Configuration

IMPORTANT: Make sure you include xmlns:ui="nativescript-image-zoom" on the Page element

<ui:ImageZoom src="~/images/148080.jpg" maxZoom="5" minZoom="2"/>

Angular

import { registerElement } from 'nativescript-angular/element-registry';
registerElement('ImageZoom', () => require('nativescript-image-zoom').ImageZoom);
<ImageZoom src="~/images/148080.jpg" maxZoom="5" minZoom="2"></ImageZoom>

API

Properties

PropertyDefaultTypeRequiredDescription
maxZoom5number<ul><li>- [ ] </li></ul>
minZoom1number<ul><li>- [ ] </li></ul>
zoomScale1number<ul><li>- [ ] </li></ul>IOS only
srcstring<ul><li>- [x] </li></ul>

ScreenShots

IOSAndroid
IOSAndroid