react-native-image-lightbox-zoom-pan

1.0.1 • Public • Published

react-native-image-lightbox-zoom-pan

This gist makes us of react-native-image-pan-zoom && react-native-lightbox to create the perfect image viewer.

Click on image will open LightBox modal once open will allow zooming and panning and swipe down to close.

Example

import Lightbox from 'react-native-image-lightbox-zoom-pan';

<LightboxView source={{uri: link}} width={screen_width - 40} />

Available props

{
    navigator,
    source,
    width = Dimensions.get("window").width,
    height = 300,
    swipeDownThreshold = 20,
    enableSwipeDown = true,
    lightBoxProps = {}, // All available props from react-native-lightbox
    imageZoomProps = {}, // All available props from react-native-image-pan-zoom
}

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i react-native-image-lightbox-zoom-pan

      Weekly Downloads

      0

      Version

      1.0.1

      License

      ISC

      Unpacked Size

      3.14 kB

      Total Files

      3

      Last publish

      Collaborators

      • chaimpan