meliorence / react-native-snap-carousel

Swiper/carousel component for React Native featuring previews, multiple layouts, parallax images, performant handling of huge numbers of items, and more. Compatible with Android & iOS.
BSD 3-Clause "New" or "Revised" License
10.33k stars 2.28k forks source link

Auto play carousel after end of images in slider #711

Open manojshrimalla opened 4 years ago

manojshrimalla commented 4 years ago

Environment

(Write your answer here.) Environment: React: 16.11.0 React native: 0.62.2 react-native-snap-carousel: ^3.9.1

Target Platform: Android (8.1)

Expected Behavior

Carousel should auto play after all images are being played.

  1. Use package and do this code <Carousel ref={(c) => { this._carousel = c; }} data={this.state.entries} renderItem={this._renderItem} sliderWidth={Dimensions.get('window').width} itemWidth={Dimensions.get('window').width} autoplay={true} autoplayDelay={500} automaticallyAdjustContentInsets={true} snapToStart={true} />

i have 5 images in list and 5 images are slides automatically 1 by 1, when it comes to last image then it automatically not start slider like it is not start from 1st image, it is stop at last image.

Do we have any property or anyway to get this things?

Please help me

Thank you

rmage commented 4 years ago

try add loop={true}

dohooo commented 2 years ago

Sorry, please allow me to advertise for my open source library! ~ I think this library react-native-reanimated-carousel will solve your problem. It is a high performance and very simple component, complete with React-Native reanimated 2