-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Long press broken for TouchableNativeFeedback #24001
Comments
Hey @mjmasn thanks for filing, I looked into this and the long press appears to be working in your repo: If you can clarify how to repro I'm happy to look again and re-open 👌 |
@rickhanlonii hmm, it's broken on a variety of real devices in our office. Could be a specific Android version maybe? I haven't tried any emulators yet but will do so this afternoon. The issue does appear to be intermittent, sometimes after a few attempts it does trigger the onLongPress handler but it's probably 1 in 10 attempts or fewer. I'm running Android 9 on a Samsung Galaxy S9+ |
Ok cool, lmk if you can find a simulator to repro in 👍 |
Working on emulators: Working on real devices: Broken on real devices: Possibly a Samsung theme here but I don't have any other devices to hand. Would be helpful if other Samsung users could chime in... |
Hey @mjmasn, thanks for more testing! Re-opening so we can test on those devices and figure out what's happening |
Thanks @rickhanlonii 👍 One final piece of information: the issue is also affecting
|
@rickhanlonii hmm actually it looks like your commit here might have triggered this: 3bef4bd#diff-580446e098bcae0cd35585b8cf689f2aL501 Apparently that line was not just a perf optimisation 🙃 |
also affecting TouchableHighlight on iOS |
Yeah I'm having this issue on both iOS and android with TouchableHighlight. |
This comment has been minimized.
This comment has been minimized.
I'm having this issue too on iOS and Android! RN 0.59.1 iOS 12.1.4, iPhone X and Android 9.0, Pixel 3 |
RN 0.59.2 ,This bug still exists |
FYI. Just forked a private repo to revert this commit. It is confirmed that commit causes the issue. |
was able to reproduce it on OnePlus 5t. |
@rickhanlonii is a fix for this set for an upcoming release? |
This is fixed by #24238 |
Same here, OnePlus 6. #24238 solved the issue for me as well. |
Fixed by 59e5023 |
yes this is fixed in [email protected] |
Just upgraded to 0.59.4, I'm still not getting the trigger for Pixel 2 on Android 9 |
Confirmed broken on 0.59.10 on a Pixel 3 XL using TouchableOpacity |
Wanted to update, the issue on 0.59.10 only seemed to happen when remote-debugging was turned on, onPress would trigger onLongPress instead However, after upgrading to RN 0.60.0, onLongPress on touchableOpacity is not working at all when using remote debugger. works fine when not debugging |
@danielidt this particular bug was fixed and the issue has been closed for a while. It sounds like you're experiencing a different problem so I'd recommend opening a new issue in this repo. I doubt you'll get any replies on this one. |
I wanted to report to whoever is seeing this on Android 10, I tried on Nokia 6.1 with Turning off the remote debugging worked fine without having to update the react-native packager. I left it at |
🐛 Bug Report
After upgrading from React Native 0.58.6 to 0.59.1, any
<TouchableNativeFeedback />
with onLongPress is no longer working i.e. the handler is never fired.To Reproduce
Use TouchableNativeFeedback with onLongPress in a React Native 0.59.1 app.
Expected Behavior
Long pressing the TouchableNativeFeedback triggers the onLongPress handler
Code Example
https://github.com/mjmasn/rn59_tnf_longpress
Environment
The text was updated successfully, but these errors were encountered: