react-native-list-gallery

1.0.5 • Public • Published

React Native List Gallery · GitHub license npm version

Props

Name Type default Description
animated bool true Allow automatic gallery swaping
containerStyle object {} styling the main continer
data array default Description
delay intger 5000 animating slid delay in milisconds if animated true
renderItem function () => void --

Examples

TODO

Usage

import React from 'react';
import ListGallery from 'react-native-list-gallery';
 
function renderImage({ url }) {
  return <Image source={{ uri: url }} />;
}
 
// gallery component
function HelloImageGallery() {
  return (
    <ListGallery
      animated
      data={[
        { url: 'http://placeimg.com/920/480/any' },
        { url: 'http://placeimg.com/920/480/any' },
        { url: 'http://placeimg.com/920/480/any' },
        { url: 'http://placeimg.com/920/480/any' }
      ]}
      delay={3000}
      renderItem={renderImage}
    />
  );
}

Package Sidebar

Install

npm i react-native-list-gallery

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

147 kB

Total Files

5

Last publish

Collaborators

  • m_aljefri