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 work one time only #44245
Comments
|
Hey, @pigeonmal! Create a valid reproduction! I tried to adjust some things, but it still couldn't run. When the example is ok, it will be a pleasure to try to help. |
Sorry for the slow response, I finally managed to get the bug in the reproducer. CHECK: https://github.com/pigeonmal/react-native-onpress-bug/ I have put the same code as my app. When newArchEnabled=false: NO BUG, pressable work I don't know for the moment if this a bug in react-native, or in my packages, I must do more tests. |
I think it is about "react-native-animated" not the react-native. |
I try to remove react-native-reanimated, the bug has disappeared |
Description
I try to create my bottom sheet.
onPress work only one time, when pressable component is in root. Sometimes it's just the first time click, sometimes is after many clicks, and after does not work anymore.
onPressIn work perfectly
The bug is on v0.73.7 (new arch, bridgless false) and v0.74.0 (new arch, bridgless true), tested only on Android.
Steps to reproduce
(TEST ON ANDROID, v0.73.7, and v0.74.0, new arch)
React Native Version
0.74.0
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
github.com/pigeonmal/react-native-onpress-bug
Screenshots and Videos
This is video of my app.
Normally it's like the reproducer.
Record_2024-04-24-22-06-44.mp4
The text was updated successfully, but these errors were encountered: