Photo Viewer

Contents

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

https://github.com/sarriaroman/photoviewer

Ionic 图片预览 Photo Viewer插件的安装(Installation)

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

Ionic 图片预览 Photo Viewer插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic 图片预览 Photo Viewer插件的用法(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});