meliorence / meliorence/react-native-snap-carousel
Default Layout Last Item should be attached to right side
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?
This is a question. I am using default layout with activeSlideAlignment={'start'}. Suppose if I have 4 items, If I scroll to far left, the last item will be shown attached to left side with plenty of white space. I want to stop left scrolling if the last item is shown, similarly for right swipe as well.
- I have read the guidelines regarding bug report.
- I have reviewed the documentation in its entirety, including the dedicated documentations 📚.
- I have searched for existing issues and made sure that the problem hasn't already been reported.
- I am using the latest plugin version.
- I am following the issue template closely in order to produce a useful bug report.
Image 1: Normal state when items are filled in carousel

Image2: All items swiped to far left showing white space in right side

Note that I have more than 3 items in each section but still it will scroll last item all the way to left side.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the README sections on default layout and activeSlideAlignment, then reproduce the four-item case described in the issue with scrolling in both directions. Done means the last item stops at the carousel edge without leaving the reported excess white space, while preserving the normal alignment behavior.
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