Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

oblador/react-native-pinchable

Repository files navigation

React Native Pinchable

Instagram like pinch to zoom for React Native.

Demo

screencast

See Example folder.

Sponsors

If you find the library useful, please consider sponsoring on Github.


Klarna

Klarna aims to make online shopping frictionless and are hiring engineers in Stockholm, Berlin and Milan. Join me to work on one of the largest greenfield React Native apps in the community.

Installation

# 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

import Pinchable from 'react-native-pinchable';
<Pinchable>
 <Image source={...}>
</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. © Joel Arvidsson 2019 - present

About

Instagram like pinch to zoom for React Native

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 2

AltStyle によって変換されたページ (->オリジナル) /