Skip to main content

Photo Viewer

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

https://github.com/sarriaroman/photoviewer

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Installation#

$ npm install com-sarriaroman-photoviewer
$ npm install @ionic-native/photo-viewer
$ ionic cap sync

Supported Platforms#

  • Android
  • iOS

Usage#

React#

Learn more about using Ionic Native components in React

Angular#

import { PhotoViewer } from '@ionic-native/photo-viewer/ngx';
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});
this.photoViewer.show('https://mysecuresite.com/path/to/image.jpg', 'My image title', {share: false, headers: '{username:foo,password:bar}'});