Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nativescript-photoviewer

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-photoviewer

A simple iOS Photo-viewer component for NativeScript based on NYTPhotoViewer cocoapod

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

NativeScript PhotoViewer

A simple, iOS, Image/Photo-viewer component for NativeScript based on the NYTPhotoViewer cocoapod: http://cocoadocs.org/docsets/NYTPhotoViewer/1.1.0/index.html

NYTPhotoViewer is a slideshow and image viewer that includes double-tap to zoom, captions, support for multiple images, interactive flick to dismiss, animated zooming presentation, and more.

Installation

Run npm i nativescript-photoviewer in your ROOT directory of your project.

Limitations

Currently no Android support, only iOS. If anyone is interested creating a Android version, feel free to do so.

Usage

// Simple usage with array of image-urls. See the Demo app for more advanced examples where you can add title and summary. 
var NYTPhotoViewer = require("nativescript-photoviewer");
var image1 = "https://somepage.com/image01.jpg";
var image2 = "https://somepage.com/image02.jpg";
var image3 = "https://somepage.com/image03.jpg";
var myImages = [image1, image2, image3];

if(!photoViewer)
    photoViewer = new NYTPhotoViewer();
photoViewer.showViewer(myImages);

Screenshots

Demo PNG Demo PNG

Authors

Nedim Erkocevic

Help

I will accept pull requests that improve this and assign credit. All code needs to be Apache 2.0 licensed.

Keywords

FAQs

Package last updated on 14 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc