meliorence / meliorence/react-native-snap-carousel

Spacing issue between two slide of carousel.

Open
#861 1 comment 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

I want to make a caousel which is same as first GIF available on this https://github.com/meliorence/react-native-snap-carousel.
Issue I am facing is i am not able to set space between two slides. I tried to do that using padding horizontal but with that I am not able to set current slide in centre as PaddingHorizontal has high precedence over activeSlideAlignment.

My requirement is current slider in centre, some portion of previous and next slide should be visible, some space should be available between two slides. And Current slide in centre means first and last slide should also be in centre.

Waiting for your support.

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 described in the issue, focusing on activeSlideAlignment and horizontal padding. Determine how to keep the current slide centered, show adjacent slides, and add spacing while preserving centered first and last slides; verify the behavior on both ends of the carousel.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.