-
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
[New Arch][Android] Touchable components stop responding randomly #48387
Comments
Tip Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - 0.74.6. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
Tip Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
Warning Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:
|
It may be related to this #44643 |
Yes, especially the huawei mobile phones, can emersion, source of the study showed that the problem seems to be |
此pr不能解决此问题的话,你可能需要等待rn安卓团队的人回来了 |
@peaktan, can you please share a reproducer to validate? It will also help to narrow down if there is any other dependency that could possibly cause this issue. Several other instances are reported where other dependencies have caused issues e.g. software-mansion/react-native-screens#2219, react-navigation/react-navigation#12039 |
@princektripathi Hello, this demo can be reproduced on Huawei mobile phone, there is no problem with the simulator and some other equipment, only some machines have problems, please help to see the reason, thank you:https://github.com/peaktan/rnnotresponsedemo.git After our test, it is found that |
Hello, also experienced this issue, specially when the button was placed in a Flatlist with Animated header. |
Yes, this button in FlatList occasionally fails to respond to user clicks, but can be clicked again after sliding. Is this the case for you as well? |
Was only able to reproduce this issue one time on iOS simulator, but never on a real device (iOS / Android). The issue was reported on Android device (Samsung S10e). Also, there was no horizontal slide in the list. |
@peaktan the problem should be fixed in most recent versions of React Native and we do not advise to use the New Architecture with versions older than 0.76, as it was not ready to be used in production before that version. @Dallas62 given that you could not reproduce it anymore, could it be that you were testing an old version and then you installed a most recent version that contains the fix? If the problem persist for you, it would be helpful if you can provide a repro with no dependencies using this template. |
Hi @cipolleschi, Not sure to understand your point. Yes for the iOS issue on simulator, the bug "disapear". I cannot provide a reproducer since the issue was only perceptible on end-user devices. I will never be sure to reproduce it correctly. The React Native version was 0.76.x, new architecture. Can you give the version of RN where RNTester test case was introduced ? |
@Dallas62 thanks for clarifying. What I meant was that you were seeing the issue, then the issue disappeared after you reinstalled the app. So, perhaps, the version on which you were seeing the issue was an old one. Anyway, pushing a new version on the stores should prompt the users to update in any case, right?
This is the commit where I added the example. This is the result on Android:
|
The only thing I'm sure, is that the user experienced the issue on RN 0.76.3. |
Closing as basically a duplicate of #36710 @Dallas62 if you can't provide a reproducer, not even a video, we can't help you in any form. @peaktan eventually you'll have to update React Native version or you won't be able to publish to the stores anymore (due to Android/iOS versions requirement). We already shipped a fix for this type of issues for 0.76.x which can't easily be backported, so we suggest you start looking into upgrading React Native version. |
I'm having this same issue in the 0.74, and was using RN Gesture Handler pressable as a workaround, however the issue was only happening on iOS for me. Updating RN to the latest 0.76.5 seems to fix the problem fox iOS, but now the exact same issue is happening on Android. |
Hi @rayson-intrack, as mentioned by @cortinico, are you able to reproduce it on a real device ? or at least do you have a video ? |
@rayson-intrack Same problem, iOS works fine, android didn't work. version is When I press, the So the I think there is some thing wrong in android's gesture detect. // no trigger onPress log
(NOBRIDGE) LOG onPressIn at: 1736215926067
(NOBRIDGE) LOG onPressOut at: 1736215926216
(NOBRIDGE) LOG onPressIn at: 1736215927667
(NOBRIDGE) LOG onPressOut at: 1736215927811
(NOBRIDGE) LOG onPressIn at: 1736215928583
(NOBRIDGE) LOG onPressOut at: 1736215928728
// click as quick as possible to trigger onPress
(NOBRIDGE) LOG onPressIn at: 1736216632304
(NOBRIDGE) LOG onPressOut at: 1736216632447
(NOBRIDGE) LOG onPressIn at: 1736216633106
(NOBRIDGE) LOG onPressOut at: 1736216633248
(NOBRIDGE) LOG onPressIn at: 1736216633275
(NOBRIDGE) LOG onPress at: 1736216633305
(NOBRIDGE) LOG onPressOut at: 1736216633416
(NOBRIDGE) LOG onPressIn at: 1736216633432 the success trigger from |
Description
On Android new Arch, touch events always stop responding randomly, and recently we expanded the user base, and more and more people are reporting obstacles. I think many people have raised such issues before, and finally there was a fix that said it fixed such problems. I wonder whether the situation we encountered can be fixed, because we are using version 0.74.1. Due to the large number of users and high upgrade cost, we want to fix such problems on the basis of 0.74.1. Thank you
Steps to reproduce
The hardest thing about this is that it can't be reliably reproduced. See description above.
React Native Version
0.74.1
Affected Platforms
Runtime - Android
Areas
Fabric - The New Renderer
Output of
npx react-native info
Stacktrace or Logs
Reproducer
not
Screenshots and Videos
In this example, the user list doesn't respond, but the navigation at the top switches, the scan hover button clicks, and, oddly enough, touch events are available again after the user swipes a few lists.
42238487.mp4
The text was updated successfully, but these errors were encountered: