1.1.3 • Published 7 years ago

react-native-zoomable v1.1.3

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

react-native-zoomable

Pinch to zoom and double/single tap component most likely used to preview images but can be used to wrap other components.

Preview

Usage

import Zoomable from 'react-native-zoomable';

Basics:

<Zoomable
  zoomScale={3}
  onScrollOrZoom={(e) => alert('did that thing!')}
  tapToZoomOut="double"
>
  <Image source={{ uri }} style={{ width: 50, height: 50 }} />
</Zoomable>

Properties

PropertyTypeDescription
onScrollOrZoomfunctioncalled when scrolled or zoomed, sent an event as a param
zoomScalenumberzoom scale. (default: 4)
zoomInTriggerstringcan be 'singletap' or 'doubletap'. (default: 'doubletap')
zoomOutTriggerstringcan be 'singletap' or 'doubletap'. (default: 'singletap')

Copyright

Copyright (c) 2016 Chris LeBlanc. Licensed under the MIT license.

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago