A Javascript image gallery for React-Native apps with common gestures like pan supporting both iOS and Android.
This component works on react-native 0.57.8+.
npm install --save react-native-ImageGallery-as
[1]: Add an import to the top of your file
import ImageGallery from 'react-native-ImageGallery-as';
[2]: At a minimal, declare the component in the render method prividing data for images
<ImageGallery
images={[
{ uri: 'http://image1.jpg' },
{ uri: 'http://image2.jpg' },
{ uri: 'http://image3.jpg' }
]} title={['Image1','Image2','Image3]}
/>
Prop | Description | Type | Default |
---|---|---|---|
images |
Your array of images | array |
Required |
title |
Your array of title | array |
[] |