Socket
Book a DemoInstallSign in
Socket

@leafletui/react-native-view-image

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafletui/react-native-view-image

React Native modal component for viewing images as a sliding gallery

0.0.4
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

React Native View Image

React Native Image and Video Viewing component Library for IOS and Android. With this component, you can view multiple images and videos and slide through them.

Support for Expo managed, Expo bare, and React Native CLI.

  • 🔥Pinch zoom for both iOS and Android
  • 🔥Double tap to zoom for both iOS and Android
  • 🔥Supports swipe-to-close animation
  • 🔥Custom header and footer components
  • 🔥Video on the slide
  • 🔥Uses VirtualizedList to optimize image loading and rendering

View demo here

https://youtu.be/lTKgSrqjMZ4

Installation

yarn add @leafletui/react-native-view-image

or

npm i @leafletui/react-native-view-image
import ImageView from "@leafletui/react-native-view-image";

const ViewImage = () => {

  const [open, setOpen] = React.useState(false);

const openImages = [
  { 
    uri: "https://images.unsplash.com/photo-1601824772624-9375c6f20701?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTd8fHNwbGFzaHxlbnwwfHwwfHw%3D&auto=format&fit=crop&w=800&q=60"
  }
  
  ];

return (
<ImageView
  images={openImages}
  imageIndex={0}
  visible={open}
  onRequestClose={() => setOpen(false)}
  navigateToVideo={navigateToVideo}
/>
  )
};

Keywords

react

FAQs

Package last updated on 20 Feb 2022

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.