mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add UI asserts and logs to a few more places
Summary: Add UI asserts to ensure thread safety of some operations. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D18339981 fbshipit-source-id: 9162b6351f40bdd543d3e255691e9f54d1934589
This commit is contained in:
committed by
Facebook Github Bot
parent
93e58b2c96
commit
f77abc583c
+4
@@ -484,6 +484,10 @@ public class NativeViewHierarchyManager {
|
||||
new LayoutAnimationListener() {
|
||||
@Override
|
||||
public void onAnimationEnd() {
|
||||
// This should be called only on the UI thread, because
|
||||
// onAnimationEnd is called (indirectly) by Android View Animation.
|
||||
UiThreadUtil.assertOnUiThread();
|
||||
|
||||
viewManager.removeView(viewToManage, viewToDestroy);
|
||||
dropView(viewToDestroy);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user