leecade / leecade/react-native-swiper
Could you provide us with an attribute for the one-way sliding control?
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
Which OS ?
Windows 10 x64
Version
Which versions are you using:
- react-native-swiper v1.6.0
- react-native v0.63.2
description:
In some scenarios, I want the user to only be able to slide in one direction. For example, in the FM mode of a music player, I only allow the user to play the next song, so the user can only slide the swiper to the left. It is not allowed to switch to the previous song. Although I controlled the behavior of the player through some additional codes, the swiper still has animation performance. I very much hope to add this one-way sliding control function to get a better experience in certain scenarios.
Contributor guide
No contributing guide indexed for this repository
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
No file or test is named in the issue. Start by locating the swiper component's existing slide gesture and animation handling, then determine where a one-way option would be applied. Done means a configured swiper allows movement only in the requested direction while preserving normal bidirectional behavior otherwise.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100