meliorence / meliorence/react-native-snap-carousel

How to handle scrolling through multiple items

Open
#600 3 comments 2 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

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

A question.

I have a calendar view in my app just like the Health app on iOS and I'm using the carousel to render the items for each day. I want to be able to scroll through the days programmatically when the user taps on a specific date. The problem is, the carousel scrolls through all the items between the current date and the date that the user selects, which can be a lot. I want the carousel to scroll to the selected date as if there were no items in between.

Is there anything I can use in the library to achieve this, or do I need to pull some tricks splicing my data?

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 reviewing the react-native-snap-carousel API and its programmatic scrolling behavior. Determine whether the carousel supports jumping directly to a selected date without traversing intermediate items; done means documenting the supported approach or defining the required behavior clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.