mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Cleanup native view hierarchy when view is dropped.
Differential Revision: D2659738 fb-gh-sync-id: 1c14b8c3c6fabbd0e580777bb94221df6dd98f71
This commit is contained in:
1 parent
0f590d1233
commit
bd1885b5d4
6 files changed
+47
-14
No files matched your search
@@ -48,6 +48,12 @@ public abstract class ViewGroupManager <T extends ViewGroup>
|
||||
parent.removeViewAt(index);
|
||||
}
|
||||
|
||||
public void removeAllViews(T parent) {
|
||||
for (int i = getChildCount(parent) - 1; i >= 0; i--) {
|
||||
removeViewAt(parent, i);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether this View type needs to handle laying out its own children instead of
|
||||
* deferring to the standard css-layout algorithm.
|
||||
|
||||
Reference in new issue
Block a user