meliorence / meliorence/react-native-snap-carousel

React native snap carousel no pause between slides

Open
#920 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
10.5k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the carousel behavior on an Honor 20 running Android 10 with the reported React Native configuration, comparing it with the S10 and iOS behavior. Inspect the carousel's handling of fast swipes, decelerationRate, and onSnapToItem; no repository file or test is identified in the issue. Done means fast swipes pause between slides as requested without regressing other devices.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.