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. Calls onDismiss function when swiping down. Useful for closing modals with downward swipe gestures.
enableHorizontalSwipe (default: true)
Controls left/right swipe gestures. When false, horizontal gestures are disabled.
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.
