leecade / leecade/react-native-swiper

iOS Swiping last page triggers click

Open
#698 4 comments 9 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

Which OS ?

iOS

Version

Which versions are you using:

  • react-native-swiper v1.5.13
  • react-native v0.45.0
Expected behaviour

When I try to swipe first page to the left or last page to the right, I expect to see scroll borders.

Actual behaviour

Instead of displaying scroll border, the onClick action is triggered

Steps to reproduce
  1. create swiper with 2+ pages. the page itself should contain touchable* element
  2. set loop={false}
  3. swipe first page to the left or last page to the right.
  4. catch the touchable* onPress event

Contributor guide

No contributing guide indexed for this repository

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 with the swiper behavior described for react-native-swiper v1.5.13 on React Native 0.45.0, reproducing it with two or more pages, touchable elements, and loop={false}. Check the first-page-left and last-page-right swipe paths; done means those edge swipes show scroll borders without triggering the touchable onPress event.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.