Overview:
The react-native-image-gallery is a pure JavaScript image gallery component for React Native apps that supports common gestures like pan, pinch, and double-tap, catering to both iOS and Android platforms. It aims to provide an elegant image viewer with functionalities reminiscent of the iOS photo album app.
Features:
- Gesture Handling: Supports pan, pinch, double-tap gestures, with efficient focus point targeting during zoom-in and zoom-out.
- Responder Switch: Flexible gesture responder switch between scrollable container and image children.
- Image Sources: Supports both remote images (via
source.uri) and local images (viarequire()), with optional dimensions for improved performance.
Installation:
To install the react-native-image-gallery component, you can use npm or yarn:
npm install --save react-native-image-gallery
or
yarn add react-native-image-gallery
Summary:
The react-native-image-gallery component is a feature-rich image viewer for React Native apps, providing gesture handling, flexible responder switch, and support for both remote and local images. It aims to offer an elegant solution for displaying images with common gestures, making it a valuable addition to React Native applications.