开发者社区> 镜像站> NPM> react-native-pinchable
react-native-pinchable
Pinch to zoom for React Native
Last updated 2 years ago by oblador .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-native-pinchable 
SYNC missed versions from official npm registry.

react-native-pinchable

Instagram like pinch to zoom for React Native.

Android not yet supported, PR appreciated

Installation

$ yarn add react-native-pinchable

Option: With react-native link

$ react-native link react-native-pinchable

Option: Manually

Add ios/RNPinchable.xcodeproj to Libraries and add libRNPinchable.a to Link Binary With Libraries under Build Phases. More info and screenshots about how to do this is available in the React Native documentation.

Option: With CocoaPods

Add the following to your Podfile and run pod update:

pod 'react-native-pinchable', :path => 'node_modules/react-native-pinchable'

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

Demo

screencast

See Example folder.

License

MIT License. © Joel Arvidsson 2019 - present

Current Tags

  • 0.1.2                                ...           latest (2 years ago)

3 Versions

  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None