@happones/nativescript-image-zoom
TypeScript icon, indicating that this package has built-in type declarations

4.0.2 • Public • Published

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

Property Default Type Required Description
maxZoom 5 number
  • - [ ]
minZoom 1 number
  • - [ ]
zoomScale 1 number
  • - [ ]
IOS only
src string
  • - [x]

ScreenShots

IOS Android
IOS Android

Package Sidebar

Install

npm i @happones/nativescript-image-zoom

Weekly Downloads

4

Version

4.0.2

License

Apache-2.0

Unpacked Size

74.2 kB

Total Files

27

Last publish

Collaborators

  • happones