-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
onPress not fire occasionally when pressing #34999
Comments
Use useState Example
|
it's about the |
facing the same issue, onPressIn is called everytime but onPress event somehow isn't called, any leads? |
This looks similar to my issue, do you observe the same behaviour? #36710 |
I couldn't reproduce this issue with the information provided. Sometimes onPress is cancelled by long press and other scenarios (see here). Difficult to tell if any of those situations are occurring in your case, or if it's something else, as there's no test case included. Going to close this in favor of #36710 |
do you have the new architecture on ? I face the same case when I turn on new architecture,but everything is ok when i turn off new architecture。 |
seeing this issue as well, on all Touchable and Pressable elements, investigating, will report back |
+1 |
Any updates on this? |
It reproduces in |
same issue on "react-native": "0.72.3" |
nope they are not fixing it apparently |
Any updates, Facing the same issue |
I think I'm seeing this in 0.76.3 - sometime I need to press half a dozen times before onPress is called. I can see onPressIn and onPressOut are being called every time, but onPress sometimes takes 2-8 taps before it triggers. |
Please this issue should be reopened |
Experiencing the same issue in react-native 0.76.5 and react-native-screens 4.1.0. Changing |
@leGenti Can you provide a reproducer, if you are able to reproduce it ? I was not able to reproduce it on my tests devices (but users has the issue). |
@Dallas62, sadly I can't provide an example. The company I work for wouldn't appreciate it. These are the environment and packages/versions I'm using:
expo-env-info 1.2.2 environment info:
"dependencies": { |
Same issue on "react-native": "0.76.7". |
Has anyone figured a workaround for this besides |
Hi @ChristopherGabba, I was able to fix it by using React-Native Gesture Handler Button instead. But care, you cannot replace all buttons with RNGH. I only replaced those reported as not working (in Flatlist). Also, I used a boolean parameter to easy rollback later. |
Description
onPress
props not always run (occasionally) each time pressedVersion
0.70.3
Output of
npx react-native info
Steps to reproduce
use any Touchable component (Pressable, TouchableOpacity, etc) and put
console.log
inonPress
functionSnack, code example, screenshot, or link to a repository
bug.mp4
The text was updated successfully, but these errors were encountered: