1.0.5 • Published 5 years ago

react-native-imagegallery-as v1.0.5

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

react-native-ImageGallery-as

Table of contents

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+.

Install

npm install --save react-native-ImageGallery-as or yarn add react-native-ImageGallery-as

Usage

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]}
/>

Props

PropDescriptionTypeDefault
imagesYour array of imagesarrayRequired
titleYour array of titlearray[]