meliorence / meliorence/react-native-snap-carousel

snapToItem bug

Open
#495 14 comments 18 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

when I use snapToItem(index, false) with X > 3, It was usually return me to my Index then turn back to Index 0. I don't know why?, I don't add any props

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 reported snapToItem(index, false) behavior with X > 3 and no additional props. Trace the carousel's snapToItem entry point and determine why it returns to the requested index before moving to index 0. Done means the behavior is reproducible, corrected, and verified for indexes beyond 3.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.