0.1.5 • Published 1 year ago

react-native-gesture-image-view v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-native-gesture-image-view

Image view with gesture for React native.

Installation

npm i react-native-gesture-image-view
npm i react-native-gesture-handler

Usage

import ImageViewer from "react-native-gesture-image-view";

// ...

 <ImageViewer
  zoomEnable={true}
  moveEnable={true}
  image={require('image.jpg')}
  style={styles.box}
/>

Props options

NameTypeDesc
imageRequireThe Image file.
resizeModeImageResizeModeImage resize mode.
styleStylePropStyle of the image container.
zoomResetbooleanReset zoom when the user stops using the zoom gesture.
moveResetbooleanReset movement when the user stops using the movement gesture.
zoomEnablebooleanEnable to zoom the image.
moveEnablebooleanEnable moving the image.

License

MIT


Made with create-react-native-library

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago