-
Notifications
You must be signed in to change notification settings - Fork 24.1k
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
RN android lost touches with E/unknown: Reactions: Got DOWN touch before receiving or CANCEL UP from last gesture #17073
Comments
same issue to me too. |
the same to me. |
before I was thinking it's only dev related, but right now in prod mode it's not working, it's also blocked touches for also native ui, actually it makes all application not working. |
Even i'm getting this issue in v0.51.0, any update on this? |
same issue to me too. |
I had the same issue. I think it was caused by the Spinner getting initialized but not being drawn or attached because it was already hidden again when the view becomes visible. export class BaseViewContainer extends React.Component<Props, State> {
private dispose: any;
//...
render() {
return (
<View /*...*/>
<Spinner visible={this.props.showSpinner}>
//...
</Spinner>
{this.props.children}
</View>
);
}
}
// ...and in the props
@computed get showSpinner() {
return this.message !== undefined;
} Can you provide some code examples of your problems? Maybe this helps finding the real issue. |
测试了一下果然如@juumixx 所说一样 当一个控件被显示,显示操作还没执行完成,控件没有完全显示出来,这时设置隐藏就会导致这个bug,卡住整个app, 强制结束重启后才能继续使用. |
Ok actually it was still broken. Even the InteractionManager.runAfterInteractions() hack didn't work. |
I have the same issue but I am not using the Spinner library. Instead I am using the ActivityIndicator but even after removing it, I still get this error. So far I can reproduce it by starting the app and quickly pressing the button that opens the navigation drawer (my app is for Android) of react-navigation. This usually triggers the error and I can only get rid of it by killing the app. |
Thanks for posting this! It looks like you may not be using the latest version of React Native, v0.53.0, released on January 2018. Can you make sure this issue can still be reproduced in the latest version? I am going to close this, but please feel free to open a new issue if you are able to confirm that this is still a problem in v0.53.0 or newer. |
我在较差的手机上还是出现了 我怀疑和 modal 有关系 |
I am still receiving these errors in 0.53.3. |
I switched to dev mode, this issues never appeared |
@FlorianBergmann could you solve it? I am having the same issue. I'm going crazy! |
Same issue here, even with
Just on Android! not on iOS. @mateoc10 Sigues con el mismo problema? |
+1 |
@Qiu800820 Do you still have the issue? |
@IndujaVJ Model show or hide action I use setState(newState, callback),Never again this issue |
We were able to get rid of it as well. Our issue seemed to relate to our implementation of Dialogs with Modal view. We made several changes and I am not quite sure what fixed it in the end. Originally we handled the visible state of the Modal from outside of our dialogs using the state of the parent. In our current implementation we instead have the visible state inside the dialog and change if from the parent by saving a reference and calling a method. @mateoc10 sorry for the late reply. |
Is this a bug report?
yes, bug
Environment
Environment:
Environment:
OS: macOS High Sierra 10.13.1
Node: 8.4.0
Yarn: 0.17.8
npm: 5.3.0
Watchman: 4.9.0
Xcode: Xcode 9.1 Build version 9B55
Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed)
react: 16.0.0-alpha.12 => 16.0.0-alpha.12
react-native: 0.48.4 => 0.51.0
Target Platform: Android (7)
Steps to Reproduce
Any overlay cause touch not working for all native and rn views with error:
E/unknown: Reactions: Got DOWN touch before receiving or CANCEL UP from last gesture
JSTouchDispatcher.java causing this handler message
Expected Behavior
touches remain working
(Write what you thought would happen.)
something deep in the android rn implementation happened.
Actual Behavior
touches doesn't work on android
Reproducible Demo
https://www.npmjs.com/package/react-native-loading-spinner-overlay use this component, after it loads several times the app become unresponsible, but not only this one.
UPDT: reproduced in both dev and prod modes.
UPDT: the same issue is happening when
and then showing it several times really frequently.
The text was updated successfully, but these errors were encountered: