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

@taskworld/react-pinch-zoom

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@taskworld/react-pinch-zoom

PhotoSwipe in React

  • 0.1.6
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

React Pinch Zoom

The core library is a fork of PhotoSwipe component for ReactJS.

Installations

NPM

npm install --save react-pinch-zoom

Usage

Style

With webpack:
import 'react-pinch-zoom/dist/style.css';

JS

React Pinch Zoom
import ReactPinchZoom from 'react-pinch-zoom';

let isOpen = true;

let items = [
    {
        src: 'https://dl.dropboxusercontent.com/u/8725581/18982935446_9c0d4157f9_h.jpg',
        w: 1600,
        h: 1067
    }
];

let options = {};

handleClose = () => {
    isOpen: false
};

<ReactPinchZoom isOpen={isOpen} items={items} options={options} onClose={handleClose}  />

Keywords

FAQs

Package last updated on 20 Mar 2018

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