leecade / leecade/react-native-swiper

onTouchEnd is not called when swipe holding..

Open
#323 0 comments 3 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

Hello
I put the swiper inside the tab component.

Now the swiper wont move, seems the touch event is catch by the tab.

So I want to build the event to lock the tab in onTouchStart and onTouchEnd.

onTouchStart works fine. but onTouchEnd wont called want you swipe holding. only if you swipe left and right and hold, then release the finger, the onTouchEnd wont called.

I tested it in android 5.1. the tab component wont catch the event in IOS. also onTouchEnd event is working fine.

so how to fix this?

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 on Android 5.1 with the swiper inside a tab component, then inspect the touch-event handling involved in the swipe lifecycle. Done means onTouchEnd fires after a held swipe and tab locking continues to work without breaking the behavior reported as working on iOS.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.