1.0.0 • Published 11 months ago

react-native-flatlist-autoslide-carousel-latest v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

Flatlist Carousel Custom

platforms

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
1.0.0

11 months ago