Gesture Features
react-native-gesture-image-viewer supports various gestures essential for viewers. Please refer to the examples below for default gesture actions.
Gesture Props
dismiss
Dismiss gesture options. Controls which vertical swipe direction can trigger onDismiss, making it useful for modal-style close gestures with backward-compatible downward dismiss by default.
horizontalSwipe
Horizontal swipe gesture options. Controls user-driven left/right page swipe gestures. Controller navigation and autoplay remain available when disabled.
Distance and velocity use strict > OR semantics. Zero and every finite non-negative value are accepted, including distanceThresholdRatio values greater than 1; negative and non-finite values fall back to defaults.
enablePinchZoom (default: true)
Controls two-finger pinch gestures with focal point zooming. When false, pinch zoom is disabled. Zoom centers on the point between your two fingers for intuitive scaling.
enableDoubleTapZoom (default: true)
Controls double-tap zoom gestures with precision targeting. When false, double-tap zoom is disabled. Zoom centers exactly on the tapped location.
enablePanWhenZoomed (default: true)
Enables panning when zoomed in with automatic boundary detection. When false, movement is disabled during zoom. Prevents content from moving outside visible screen area.
