leecade / leecade/react-native-swiper

onTouchEnd(e, state, context) state, context are both undefined in Android

Open
#383 3 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

when touch the Swiper image, it will do something according the data the image has. so I have to know the index of this image, but state, context of the onTouchEnd function are both undefined, ios is OK.

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 Swiper image touch behavior on Android and compare the onTouchEnd callback with iOS. Trace how the callback receives state and context, then verify that the image index is available on Android so data-dependent touch handling works consistently.

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
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.