leecade / leecade/react-native-swiper

Give priority to slide child for press events

Open
#1,294 4 comments 1 reaction 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

I'm having a react-native-slider nested in a swiper slide. The problem is that it's quite hard to trigger the slider to slide. The swiper usually triggers before the slider gets any chance to slide.

How could I give the priority to the slider when the press event is around it?

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

Reproduce the issue with react-native-slider nested inside a swiper slide and inspect the press-event handling entry points in this repository. Determine how the child slider and parent swiper compete for the gesture, then verify that the slider responds reliably while swiping still works outside the slider.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.