meliorence / meliorence/react-native-snap-carousel
single direction scroll
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
Feature Request:
Adding a property something like "ScrollDirection = LeftOnly|RightOnly|Both(default)"
I've read in some old threads of several ways to handle this:
- enableScroll = false (but then scrolling is completely disabled)
- check onScroll = but by the time I check that use would already scroll to undesired direction which gives bad user experience
- Another option is to remove previous items. However, that works but there's only one aesthetic glitch - You don't see a partially visible previous card and also pagination might mess up (user should still see the step they are on)
Why is such a feature important?
Imagine you want users to fill a sectioned form where they should not go to previous ones or maybe a game where you don't want user to peek previous cards.
thanks
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 by tracing the carousel's scroll handling and pagination behavior; the issue does not name specific files or tests. Compare the current behavior with the requested LeftOnly, RightOnly, and Both modes, including partially visible previous cards. Done means the selected direction is blocked without disabling scrolling entirely and the default behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100