leecade / leecade/react-native-swiper

Swiper enable/disable on Text/Image components

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

A little obscure issue I'm having.

I have a Image component with a PanResponder on it in order to do a Tinder style card that I can move left or right. This component is sat on top of the react-native-swiper. However sometimes when I try to swipe the Tinder component I end up moving the react-native-swiper beneath it. Is there anyway to specify an area that should not trigger the react-native-swiper PanResponder?

Secondly, I have also put a Text component on top of the react-native-swiper and find that the react-native-swiper does not register any touches that start on top of this text. Is there anyway to set the PanResponder of the text to be null? so that the react-native-swiper picks up the action?

Many thanks if anyone has any advice on either of these issues! 👍

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

No file, test, or entry point is identified. First clarify whether the swiper should ignore touches handled by the Image's PanResponder and accept touches beginning on Text, then identify the relevant touch-handling code and tests. Done should include agreed behavior for both cases and coverage for it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.