mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-08 22:42:40 +08:00
Cleanup mNativeChildren on react node cleanup.
Differential Revision: D2663443 fb-gh-sync-id: 7e6e7212103b738f6b6f535e54cc8b86e5def685
This commit is contained in:
committed by
facebook-github-bot-8
parent
0b46a0c13b
commit
337dc7e093
@@ -90,6 +90,13 @@ public class NativeViewHierarchyOptimizer {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles native children cleanup when css node is removed from hierarchy
|
||||
*/
|
||||
public static void handleRemoveNode(ReactShadowNode node) {
|
||||
node.removeAllNativeChildren();
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles an updateView call. If a view transitions from being layout-only to not (or vice-versa)
|
||||
* this could result in some number of additional createView and manageChildren calls. If the
|
||||
|
||||
Reference in New Issue
Block a user