react-native-list-gallery
v1.0.5
Published
react native list gallery enhanced scrollView library to make cusomized animated gallery slide for applications
Downloads
4
Maintainers
Readme
React Native List Gallery ·
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}
/>
);
}