-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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
[Modal] bug when LayoutAnimation is not "consumed": NSInternalInconsistencyException: Could not locate shadow view with tag #x #16182
Comments
Ok a little more investigation: this appears to be confined to Here is another repro which has two buttons, If you tap the If you tap the In conclusion: if you call a This is new behaviour, and was not happening in |
Same problem there |
+1 |
Also dealing with this problem |
Very much encountering the same warning, has appeared after upgrading from RN 0.48. Does anyone have any tips on canceling or dequeuing layout animations? |
Just ran into this (RN 0.49.5), been debugging this for hours thinking it's an updated behaviour of RN 0.49 affecting race conditions. Disabled LayoutAnimation for now. |
Having the exact same issue. I tried using LayoutAnimation in a parent component and then isolating the Modal into a subcomponent (ModalManager) without LayoutAnimation, but this didn't help either. |
@jackkinsella Yeah, as I understand it |
+1 |
1 similar comment
+1 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
This issue has had no resolution and clearly still affects people. For these reasons I think it should be reopened. |
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. |
Hi, This bug is still. preset in v0.53.0 or newer. |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: macOS Sierra 10.12.6
Node: 7.8.0
Yarn: 1.0.1
npm: 4.2.0
Watchman: 4.7.0
Xcode: Xcode 9.0 Build version 9A235
Android Studio: Not Found
Packages: (wanted => installed)
react: 16.0.0-alpha.12 => 16.0.0-alpha.12
react-native: 0.48.4 => 0.48.4
Target Platform: iOS (11)
Steps to Reproduce
Modal
LayoutAnimation
only, or also withAnimated
)Modal
Expected Behavior
The
Modal
should be correctly dismissed.Actual Behavior
The
Modal
is dismissed as expected, but then immediately shows again, and the app crashes with the above error in the simulator. In the Snack demo below and on a physical device, the app does not crash, but the interface is unresponsive. However, text inputs are still able to be focused (correctly bringing up the keyboard), andScrollView
s are still scrollable.Reproducible Demo
https://snack.expo.io/rJa7CJWhb
The text was updated successfully, but these errors were encountered: