react-native-image-watch

1.0.0 • Public • Published

react-native-image-fit

ImageWatch component for RN

Installation

$ npm install --save react-native-image-watch

or

$ yarn add react-native-image-watch

Usage

import { ImageViewer } from 'react-native-image-watch';
 
export const App = () => (
  <ImageViewer
    disabled={false} // by default
    source={require('./photo.png')} // or { url: 'https://...' }
    doubleTapEnabled={true} // by default double tap will zoom image
    onMove={(e, gestureState) => null}
    onPress={(opening) => console.log(opening)}
    mainImageStyle={styles.someStyle}
    zoomedImageStyle={styles.zoomedImageStyle}
    mainImageProps={{
        resizeMode: 'contain'
    }}
    zoomedImageProps={{
        resizeMode: 'contain'
    }}
  />
)

Package Sidebar

Install

npm i react-native-image-watch

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

13.1 kB

Total Files

7

Last publish

Collaborators

  • guochopper