Touchable components stop responding randomly
Problem
Description We've been experiencing this issue in a couple of our apps, it's kinda driving us mad. Basically, sometimes, completely unpredictably the touchable areas just stop responding. We tried reproducing this consistently in several different ways but just couldn't pin point what causes it to happen and in which devices. It happens on both iOS and Android, and also in debug or release mode. Generally, it looks like it only happens after the user has been using the app for a little while (10+ minutes). It seems to happen in any button in the app randomly, and some times it also seemingly randomly starts working again. Closing and opening the app again always fixes the problem. We had clients complain about it in quite a few occasion, but some of our public testers rarely ever experience this either which makes it even harder to understand. I spent a very long time investigating it over literally the past entire year, but it's really really hard to debug, because when the issue happens in debug mode, anything you do in the code that causes hot reloading actually "fixes it", making it almost impossible to investigate. I have added lots of debugging tools to try and understand what happens though, I got a few bits of information that might be able to help. 1. This is not a performance or execution queue issue, as we have other interactive components in the screen that update automatically based on time and these never freeze. 2. Other touch based components seem to co
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Touchable components stop responding randomly
Hi @necolas thanks for the feedback, however you really should not close this issue..... other users have mentioned similar problems, please do not ignore this issue just because it happens intermittently. a) As I said, the problem cannot be reliably reproduced at all b) The problem happens intermittently c) This has been happening through several previous versions of RN... I will upgrade again
Trust Score
6 verifications
- 1
Hi @necolas thanks for the feedback, however you really should not close this is
Hi @necolas thanks for the feedback, however you really should not close this issue..... other users have mentioned similar problems, please do not ignore this issue just because it happens intermittently.
- 2
a) As I said, the problem cannot be reliably reproduced at all
b) The problem happens intermittently c) This has been happening through several previous versions of RN... I will upgrade again but this certainly is not the problem.
- 3
I provided as much information as I could possibly gather from this and hoped it
I provided as much information as I could possibly gather from this and hoped it could be helpful to others too.
Validation
Resolved in facebook/react-native GitHub issue #36710. Community reactions: 23 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep