https://github.com/spacesuitdiver/react-native-zoomable
React Native component for pinch and double/single tap to zoom, most likely used to preview images but can be used to wrap anything.
https://github.com/spacesuitdiver/react-native-zoomable
react-native
Last synced: about 1 year ago
JSON representation
React Native component for pinch and double/single tap to zoom, most likely used to preview images but can be used to wrap anything.
- Host: GitHub
- URL: https://github.com/spacesuitdiver/react-native-zoomable
- Owner: spacesuitdiver
- License: mit
- Created: 2017-05-16T01:18:19.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-03T23:01:23.000Z (over 8 years ago)
- Last Synced: 2025-03-22T20:16:51.360Z (over 1 year ago)
- Topics: react-native
- Language: JavaScript
- Homepage:
- Size: 2.13 MB
- Stars: 27
- Watchers: 3
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-zoomable
React Native component for pinch and double/single tap to zoom, most likely used to preview images but can be used to wrap anything.

## Usage
```javascript
import Zoomable from 'react-native-zoomable';
```
```javascript
alert('did that thing!')}
tapToZoomOut="double"
>
```
## Properties
| Property | Type | Description |
|-----------------|----------|--------------------------------------------------------------|
| onScrollOrZoom | function | called when scrolled or zoomed, sent an event as a param |
| zoomScale | number | zoom scale. (default: 4) |
| zoomInTrigger | string | can be 'singletap' or 'doubletap'. (default: 'doubletap') |
| zoomOutTrigger | string | can be 'singletap' or 'doubletap'. (default: 'singletap') |
## Copyright
Copyright (c) 2017 Chris LeBlanc. Licensed under the MIT license.