Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pressable component trigger onPressIn and onPressOut at the same time even if the touch is held #3280

Closed
TomCorvus opened this issue Dec 10, 2024 · 0 comments · Fixed by #3286
Assignees
Labels
Platform: Android This issue is specific to Android Repro provided A reproduction with a snack or repo is provided

Comments

@TomCorvus
Copy link

Description

Hello,

I try to change the state of a component with Pressable onPressIn and onPressOut events but both are called at the same time even I hold the touch.
The problem seems to occur only on Android.
I have to switch to Pressable react-native component to bypass it.

Steps to reproduce

  1. Clone repo
  2. Start it on Android
  3. Hold the touch on Pressable component and see the result

Snack or a link to a repository

https://github.com/TomCorvus/RNavigation

Gesture Handler version

2.21.2

React Native version

0.76.3

Platforms

Android

JavaScript runtime

Hermes

Workflow

Expo bare workflow

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

Android emulator

Device model

Pixel 7 Pro

Acknowledgements

Yes

@github-actions github-actions bot added Repro provided A reproduction with a snack or repo is provided Platform: Android This issue is specific to Android labels Dec 10, 2024
@coado coado self-assigned this Dec 12, 2024
@coado coado closed this as completed in 1665fc9 Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android This issue is specific to Android Repro provided A reproduction with a snack or repo is provided
Projects
None yet
2 participants