1.0.5 • Published 5 years ago

react-native-list-gallery v1.0.5

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

React Native List Gallery · GitHub license npm version

Props

NameTypedefaultDescription
animatedbooltrueAllow automatic gallery swaping
containerStyleobject{}styling the main continer
dataarraydefaultDescription
delayintger5000animating slid delay in milisconds if animated true
renderItemfunction() => 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}
    />
  );
}
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago