Photo Viewer

Improve this doc

$ ionic plugin add com-sarriaroman-photoviewer
$ npm install --save @ionic-native/photo-viewer

Repo: https://github.com/sarriaroman/photoviewer

This plugin can display your image in full screen with the ability to pan, zoom, and share the image.

Supported platforms

Usage

import { PhotoViewer } from '@ionic-native/photo-viewer';

constructor(private photoViewer: PhotoViewer) { }

...

this.photoViewer.show('https://mysite.com/path/to/image.jpg');

this.photoViewer.show('https://mysite.com/path/to/image.jpg', 'My image title', {share: false});

Instance Members

show(url, title, options)

Shows an image in full screen

Param Type Details
url string

URL or path to image

title string
options any

API

Native

General