alwx / react-native-photo-view

Pinch-to-zoom view for React Native (both iOS and Android)
MIT License
815 stars 434 forks source link

[iOS] Add `allowsInitialPan` prop to enable panning before pinch gesture #132

Open computerjazz opened 6 years ago

computerjazz commented 6 years ago

Currently, panning the image is disabled until the user performs a pinch gesture, which is not always the desired behavior. This change adds an allowsInitialPan prop to configure whether panning should be initially disabled.

This has been a source of confusion as documented in the following issues: https://github.com/alwx/react-native-photo-view/issues/65 https://github.com/alwx/react-native-photo-view/issues/62