# @happones/nativescript-image-zoom

> Zoom enabled ImageView for NativeScript

Latest version **4.0.2** (published 2020-12-03) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @happones/nativescript-image-zoom
pnpm add @happones/nativescript-image-zoom
yarn add @happones/nativescript-image-zoom
bun add @happones/nativescript-image-zoom
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.2 |
| Published | 2020-12-03 |
| First published | 2020-12-01 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 72.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Omar Hernandez |
| Maintainers | happones |
| Keywords | NativeScript, JavaScript, Android, iOS |

## Links

- npm: https://www.npmjs.com/package/@happones/nativescript-image-zoom
- Homepage: https://github.com/happones/nativescript-image-zoom
- Issues: https://github.com/happones/nativescript-image-zoom/issues
- npm.io page: https://npm.io/package/@happones/nativescript-image-zoom

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 4.0.2 (latest) — 2020-12-03
- 4.0.1 — 2020-12-01
- 4.0.0 — 2020-12-01

## README

# NativeScript Image Zoom

[![npm](https://img.shields.io/npm/v/@happones/nativescript-image-zoom.svg)](https://www.npmjs.com/package/@happones/nativescript-image-zoom)
[![npm](https://img.shields.io/npm/dt/@happones/nativescript-image-zoom.svg?label=npm%20downloads)](https://www.npmjs.com/package/@happones/nativescript-image-zoom)

## 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

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

#### Angular

```ts
import { registerElement } from 'nativescript-angular/element-registry';
registerElement('ImageZoom', () => require('nativescript-image-zoom').ImageZoom);
```

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

#### Vue

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

Vue.use(ImageZoomPlugin);
```

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


# API


## Properties

| Property | Default | Type | Required | Description  |
| --- | --- | --- | ---| ---|
| maxZoom | 5 | number | <ul><li>- [ ] </li></ul> | |
| minZoom | 1 | number | <ul><li>- [ ] </li></ul> |  |
| zoomScale | 1 | number | <ul><li>- [ ] </li></ul> | *IOS only*|
| src |  | string | <ul><li>- [x] </li></ul> | |


## ScreenShots
| IOS | Android|
| --- | ---|
|![IOS](https://i.imgur.com/XDBYVdWh.gif) | ![Android](https://i.imgur.com/UL20npqh.gif)|

---
_Source: https://npm.io/package/@happones/nativescript-image-zoom · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
