leecade / leecade/react-native-swiper

onPress not fired while first swipe not made

Open
#504 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Need answer from author
Dominant language
JavaScript
Stars
10.5k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Version
  • react-native-swiper v1.5.8
  • react-native v0.43.4
Actual behaviour

When I open my app and pressing a button (inside the swiper) that fire an onPress event, it seems all my events are stacked and fired only when I shift the view a little bit (like if I'm swipping). But after that, all my events are fired normaly...

I've already tried the #201 solution, nothing change.

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 by reproducing the issue with react-native-swiper v1.5.8 and react-native v0.43.4 using a button inside the swiper. Trace the swiper's touch handling around the initial view and compare behavior before and after a slight swipe; done means the button's onPress fires immediately without requiring a swipe.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.