4.0.2 • Published 4 years ago

@happones/nativescript-image-zoom v4.0.2

Weekly downloads
1
License
Apache-2.0
Repository
-
Last release
4 years ago

NativeScript Image Zoom

npm npm

Installation

NativeScript 7+:

tns plugin add @happones/nativescript-image-zoom

NativeScript > 7:

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>

Vue

import ImageZoomPlugin from '@happones/nativescript-image-zoom/vue';

Vue.use(ImageZoomPlugin);
<ImageZoom src="~/images/148080.jpg" maxZoom="5" minZoom="2"></ImageZoom>

API

Properties

PropertyDefaultTypeRequiredDescription
maxZoom5number-
minZoom1number-
zoomScale1number- IOS only
srcstring- x

ScreenShots

IOSAndroid
IOSAndroid