You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Pull Request resolved: facebook#55657
Remove the NativeViewHierarchyOptimizer class and all its usages. This class was part of the Legacy Architecture and had already been largely gutted (most logic removed due to NativeKind removal). Its remaining responsibilities have been inlined into the call sites: UIImplementation now directly enqueues view operations on UIViewOperationQueue, and ReactShadowNodeImpl.dispatchUpdates now directly calls enqueueUpdateLayout. The NativeViewHierarchyOptimizer parameter has been removed from the ReactShadowNode.onBeforeLayout() and dispatchUpdates() interfaces.
changelog: [internal] internal
Reviewed By: NickGerleman
Differential Revision: D93037023
fbshipit-source-id: ba76730ada6bd5ceeea31dcf28eb3f6a690b439f
Copy file name to clipboardExpand all lines: packages/react-native/ReactAndroid/api/ReactAndroid.api
+4-17Lines changed: 4 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -3539,19 +3539,6 @@ public class com/facebook/react/uimanager/NativeViewHierarchyManager {
3539
3539
public fun updateViewExtraData (ILjava/lang/Object;)V
3540
3540
}
3541
3541
3542
-
public class com/facebook/react/uimanager/NativeViewHierarchyOptimizer {
3543
-
public fun <init> (Lcom/facebook/react/uimanager/UIViewOperationQueue;Lcom/facebook/react/uimanager/ShadowNodeRegistry;)V
3544
-
public static fun assertNodeSupportedWithoutOptimizer (Lcom/facebook/react/uimanager/ReactShadowNode;)V
3545
-
public fun handleCreateView (Lcom/facebook/react/uimanager/ReactShadowNode;Lcom/facebook/react/uimanager/ThemedReactContext;Lcom/facebook/react/uimanager/ReactStylesDiffMap;)V
3546
-
public fun handleForceViewToBeNonLayoutOnly (Lcom/facebook/react/uimanager/ReactShadowNode;)V
3547
-
public fun handleManageChildren (Lcom/facebook/react/uimanager/ReactShadowNode;[I[I[Lcom/facebook/react/uimanager/ViewAtIndex;[I)V
3548
-
public static fun handleRemoveNode (Lcom/facebook/react/uimanager/ReactShadowNode;)V
3549
-
public fun handleSetChildren (Lcom/facebook/react/uimanager/ReactShadowNode;Lcom/facebook/react/bridge/ReadableArray;)V
3550
-
public fun handleUpdateLayout (Lcom/facebook/react/uimanager/ReactShadowNode;)V
3551
-
public fun handleUpdateView (Lcom/facebook/react/uimanager/ReactShadowNode;Ljava/lang/String;Lcom/facebook/react/uimanager/ReactStylesDiffMap;)V
3552
-
public fun onBatchComplete ()V
3553
-
}
3554
-
3555
3542
public final class com/facebook/react/uimanager/OnLayoutEvent : com/facebook/react/uimanager/events/Event {
3556
3543
public static final field Companion Lcom/facebook/react/uimanager/OnLayoutEvent$Companion;
3557
3544
public fun getEventName ()Ljava/lang/String;
@@ -3852,7 +3839,7 @@ public abstract interface class com/facebook/react/uimanager/ReactShadowNode {
3852
3839
public abstract fun calculateLayout (FF)V
3853
3840
public abstract fun calculateLayoutOnChildren ()Ljava/lang/Iterable;
3854
3841
public abstract fun dirty ()V
3855
-
public abstract fun dispatchUpdates (FFLcom/facebook/react/uimanager/UIViewOperationQueue;Lcom/facebook/react/uimanager/NativeViewHierarchyOptimizer;)V
3842
+
public abstract fun dispatchUpdates (FFLcom/facebook/react/uimanager/UIViewOperationQueue;)V
3856
3843
public abstract fun dispatchUpdatesWillChangeLayout (FF)Z
3857
3844
public abstract fun dispose ()V
3858
3845
public abstract fun getChildAt (I)Lcom/facebook/react/uimanager/ReactShadowNode;
@@ -3901,7 +3888,7 @@ public abstract interface class com/facebook/react/uimanager/ReactShadowNode {
3901
3888
public abstract fun markUpdateSeen ()V
3902
3889
public abstract fun markUpdated ()V
3903
3890
public abstract fun onAfterUpdateTransaction ()V
3904
-
public abstract fun onBeforeLayout (Lcom/facebook/react/uimanager/NativeViewHierarchyOptimizer;)V
3891
+
public abstract fun onBeforeLayout ()V
3905
3892
public abstract fun onCollectExtraUpdates (Lcom/facebook/react/uimanager/UIViewOperationQueue;)V
3906
3893
public abstract fun removeAllNativeChildren ()V
3907
3894
public abstract fun removeAndDisposeAllChildren ()V
@@ -3978,7 +3965,7 @@ public class com/facebook/react/uimanager/ReactShadowNodeImpl : com/facebook/rea
3978
3965
public fun calculateLayout (FF)V
3979
3966
public fun calculateLayoutOnChildren ()Ljava/lang/Iterable;
3980
3967
public fun dirty ()V
3981
-
public fun dispatchUpdates (FFLcom/facebook/react/uimanager/UIViewOperationQueue;Lcom/facebook/react/uimanager/NativeViewHierarchyOptimizer;)V
3968
+
public fun dispatchUpdates (FFLcom/facebook/react/uimanager/UIViewOperationQueue;)V
3982
3969
public fun dispatchUpdatesWillChangeLayout (FF)Z
3983
3970
public fun dispose ()V
3984
3971
public synthetic fun getChildAt (I)Lcom/facebook/react/uimanager/ReactShadowNode;
@@ -4035,7 +4022,7 @@ public class com/facebook/react/uimanager/ReactShadowNodeImpl : com/facebook/rea
4035
4022
public final fun markUpdateSeen ()V
4036
4023
public fun markUpdated ()V
4037
4024
public fun onAfterUpdateTransaction ()V
4038
-
public fun onBeforeLayout (Lcom/facebook/react/uimanager/NativeViewHierarchyOptimizer;)V
4025
+
public fun onBeforeLayout ()V
4039
4026
public fun onCollectExtraUpdates (Lcom/facebook/react/uimanager/UIViewOperationQueue;)V
0 commit comments