diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupManager.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupManager.java index e91be0e20..7b72448ab 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewGroupManager.java @@ -77,4 +77,13 @@ public abstract class ViewGroupManager return false; } + /** + * Returns whether or not this View type should promote its grandchildren as Views. This is an + * optimization for Scrollable containers when using Nodes, where instead of having one ViewGroup + * containing a large number of draw commands (and thus being more expensive in the case of + * an invalidate or re-draw), we split them up into several draw commands. + */ + public boolean shouldPromoteGrandchildren() { + return false; + } }