项目
在 GitHub 查看
oblador/react-native-pinchable
关于
Instagram like pinch to zoom for React Native
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
React Native Pinchable
Instagram like pinch to zoom for React Native.
Demo

See Example folder.
Sponsors
If you find the library useful, please consider sponsoring on Github.
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
探索相关项目
加载中…