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.32k stars 2.28k forks source link

issue #73 => Infinite scroll in Android is not happening when loop={true} #810

Open ARIPRASATH4664 opened 3 years ago

ARIPRASATH4664 commented 3 years ago

<Carousel layout={'default'} data={item} renderItem={this.renderItem} sliderWidth={viewportWidth} itemWidth={viewportWidth - 56} autoplay={true} loop={true} inactiveSlideScale={1} inactiveSlideOpacity={1} onSnapToItem={(index) => this.setState({ ActiveIndex: index }) } />

Scroll the carousel continuously it hangs at length 3, the loop doesn't exist anymore.

leogiroux commented 3 years ago

same here

ARIPRASATH4664 commented 3 years ago

@leogiroux Tried with all suggestions over other bugs as well works good on ios, troubles in android

pankti16 commented 3 years ago

same here

goldqwert commented 3 years ago

same here

cheng1104 commented 3 years ago

same here

huynhhq commented 3 years ago

same here

minhnbh commented 3 years ago

Same problem :(

SanJeong commented 3 years ago

same here

SanJeong commented 3 years ago

Same problem :(

apk

markssiw11 commented 3 years ago

same here

wayne-tt commented 3 years ago

same here

ARIPRASATH4664 commented 3 years ago

I have found it works well in performance but still have design limitations

Alternate package Click Here

Hope It Helps

ozanmanav commented 3 years ago

I've found a fix. If you add loopClonesPerSide to your carousel, it will start work with android.

loop={true} loopClonesPerSide={CAROUSEL_ENTRIES.length}

parmarravi commented 3 years ago

any solution

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

patissier-boulanger commented 2 years ago

same here..

minhtet-BeeComTech commented 2 years ago

same here... any solution