meliorence / meliorence/react-native-snap-carousel

Loop doesn't work on some android devices

Open
#417 27 comments 24 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Is this a bug report, a feature request, or a question?

Bug

Have you followed the required steps before opening a bug report?

(Check the step you've followed - replace the space character between the square brackets ([]) by an x.)

Have you made sure that it wasn't a React Native bug?

Unsure.

Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?

Android only.

Is the bug reproductible in a production environment (not a debug one)?

Yes. On both environment.

Environment

Environment:
React: 16.2.0
React native: 0.53.3
react-native-snap-carousel: 3.3.4

Target Platform:
Android (8.0)
iOS (11.4)

Expected Behavior

Like the result on iOS. When set loop={true}, the carousel can have infinite loop effect:

ios

Actual Behavior

On android, the carousel can't loop infinitely but just repeat few loop and stop:

android

(Write what happened. Add screencasts/screenshots!)

Reproducible Demo

https://snack.expo.io/H11RLUlnm

(Paste the link to a Snack example in which the issue can be reproduced. Please follow the guidelines for providing a Minimal, Complete, and Verifiable example.)

Steps to Reproduce

Just try to keep scroll on android platform.

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 with the linked Expo Snack reproducible demo using React Native 0.53.3 and react-native-snap-carousel 3.3.4 on Android 8.0. Reproduce the carousel with loop={true}, compare its behavior with iOS, and inspect the carousel entry points involved in scrolling. Done means the Android carousel continues looping instead of stopping after a few cycles.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.