https://github.com/oblador/react-native-pinchable
Instagram like pinch to zoom for React Native
https://github.com/oblador/react-native-pinchable
gesture pinch-to-zoom react-native
Last synced: 4 months ago
JSON representation
Instagram like pinch to zoom for React Native
- Host: GitHub
- URL: https://github.com/oblador/react-native-pinchable
- Owner: oblador
- License: mit
- Created: 2019-01-06T14:44:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-12T15:32:41.000Z (almost 2 years ago)
- Last Synced: 2025-05-27T08:56:12.286Z (5 months ago)
- Topics: gesture, pinch-to-zoom, react-native
- Language: Java
- Homepage:
- Size: 788 KB
- Stars: 232
- Watchers: 1
- Forks: 26
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
React Native Pinchable
Instagram like pinch to zoom for React Native.
## Demo

See [`Example`](https://github.com/oblador/react-native-pinchable/tree/master/Example) folder.
## Sponsors
If you find the library useful, please consider [sponsoring on Github](https://github.com/sponsors/oblador).
---
Klarna aims to make online shopping frictionless and are [hiring engineers in Stockholm, Berlin and Milan](https://bit.ly/2LV9E98). Join me to work on one of the largest greenfield React Native apps in the community.
## Installation
```bash
# Add dependency
yarn add react-native-pinchable
# Link iOS dependency
pod install --project-directory=ios
# Compile project
react-native run-ios # or run-android
```## Usage
```js
import Pinchable from 'react-native-pinchable';
```
### Properties
| Prop | Description | Default |
| ---------------------- | ------------------------------- | ------- |
| **`minimumZoomScale`** | The minimum allowed zoom scale. | `1` |
| **`maximumZoomScale`** | The maximum allowed zoom scale. | `3` |## Limitations
On Android it's not possible to receive touch events on the views inside the `Pinchable` component.
## License
[MIT License](http://opensource.org/licenses/mit-license.html). © Joel Arvidsson 2019 - present