tns plugin add nativescript-image-zoom
IMPORTANT: Make sure you include xmlns:ui="nativescript-image-zoom" on the Page element
<ui:ImageZoom src="~/images/148080.jpg" maxZoom="5" minZoom="2"/>
import { registerElement } from 'nativescript-angular/element-registry';
registerElement('ImageZoom', () => require('nativescript-image-zoom').ImageZoom);
<ImageZoom src="~/images/148080.jpg" maxZoom="5" minZoom="2"></ImageZoom>
Property | Default | Type | Required | Description |
---|---|---|---|---|
maxZoom | 5 | number | ||
minZoom | 1 | number | ||
zoomScale | 1 | number | IOS only | |
src | string |
IOS | Android |
---|---|