react-native-flatlist-autoslide-carousel-latest
v1.0.0
Published
this is flatlist crousal
Downloads
2
Readme
Flatlist Carousel Custom
Example latest version is stable you can modify their style props
Usage
$ npm install --save react-native-flatlist-autoslide-carousel-latest
import FlatListcarousel from 'react-native-flatlist-autoslide-carousel-latest';
const App = () => {
const data = [
{ id: 1, name: 'Item 1', description: 'Description for Item 1' },
{ id: 2, name: 'Item 2', description: 'Description for Item 2' },
{ id: 3, name: 'Item 3', description: 'Description for Item 3' },
{ id: 4, name: 'Item 3', description: 'Description for Item 3' },
{ id: 5, name: 'Item 3', description: 'Description for Item 3' },
{ id: 6, name: 'Item 3', description: 'Description for Item 3' },
{ id: 7, name: 'Item 3', description: 'Description for Item 3' },
{ id: 8, name: 'Item 3', description: 'Description for Item 3' },
]
const itemStyle = {
backgroundColor: 'gray',
height:200,width:200,
};
const indicatorStyle = {
backgroundColor: 'green',
};
return (
<View style={{flex:1}}>
<FlatListcarousel data={data}
itemStyle={itemStyle}
indicatorStyle={indicatorStyle}
showDots={true} />
</View>
)
}
export default App