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

react-native-image-viewer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-image-viewer

Displaying multiple images in fullscreen mode that you can swipe through.

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
28
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-image-viewer (iOS only)

Displaying multiple images in fullscreen mode that you can swipe through.

Installation

npm install react-native-image-viewer --save

Features

  1. Swipeable images in fullscreen mode
  2. Pinch to zoom

Usage

You should provide those props to the Component:

  1. modalVisibility {Boolean} - decide whether to show the modal

  2. closeModal {Function} - close modal

  3. navigationState {Object} - its' used with NavigationExperimental.

    You navigationState will looke like this:

     ```
     {
       index: 0,
       routes: [
         {
           key: '1',
           url: 'https://example.com/image.png',
           size: 1000
         }
       ]
     }
     ```
    

    You should specify width of the image by size, it's used to define how large you can zoom the image.

Check the example repository.

Screenshot

react-native-image-viewer screenshot

Code style

use standardjs.

TODO

[ ] add test

Keywords

FAQs

Package last updated on 05 Aug 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