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.37k stars 2.29k forks source link

React native snap carousel no pause between slides #920

Open remitestut opened 2 years ago

remitestut commented 2 years ago

Hello,

Sorry for my title, I didn't know how to explain it. So, I'm using React-native-snap-carousel (3.9.1) on my EXPO application to add a simple carousel.

When I slide between slides, there is no wait / pause. With a fast swipe I can go directly to the last slide. But I want to make a break between slide and swipe again to go to the next slide.

The problem appear only on my device : Honor 20 / Android 10 I haven't any problem with some others devices like S10, or IOS dEvices.

Here is my carousel code :

<Carousel
    ref={carouselRef}
    keyExtractor={carouselKE}
    data={allSlides}
    sliderWidth={windowWidth}
    itemWidth={windowWidth}
    renderItem={RenderCarouselItem}
    onSnapToItem={(index) => setActiveSlide(index)}
    inactiveSlideOpacity={1}
    inactiveSlideScale={1}
    decelerationRate={5}
/>

I tried to use decelerationRate without success.

Does anybody got this problem with that lib ?

Thanks

xogus303 commented 2 years ago

I have same problem

lim1105 commented 2 years ago

Hi @remitestut have you got any findings so far, I seems to have the same issue