meliorence / meliorence/react-native-snap-carousel

How to scroll two carousel same time

Open
#338 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I have used two different carousel in one screen, i want scroll two items it same time, i mean if i scroll
carousel-1 then carousel-2 should be scroll with carousel-1 and vice versa. i have added two carousel in one screen , but i am not able to take event when scroll start of any carousel just programatically start scrolling of another carousel. let me is it possible to scroll both items at same time. shall i use scrollBy or scrollTo Method to scroll the carousel programatically or is there any other solution to fix this issue.

Below i have attached image of my sample UI. please let me know if anybody have done this type of carousel uses.
sample_ui_image

I am using below versions

"react": "16.3.1",
"react-native": "0.55.3"
"react-native-snap-carousel": "^3.7.0",

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 two-carousel setup described in the issue with react-native 0.55.3 and react-native-snap-carousel 3.7.0. Read the carousel API documentation for scroll events, scrollBy, and scrollTo, then determine whether synchronized scrolling is supported and what a completed solution or documented limitation would look like.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
frontend, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.