Skip to content

Commit c2156a8

Browse files
mdvaccameta-codesync[bot]
authored andcommitted
Stub NativeViewHierarchyManager and clean up usages (#55758)
Summary: Pull Request resolved: #55758 Stub out NativeViewHierarchyManager by removing all fields, private methods, and method body implementations while keeping all public method signatures with empty bodies for backward compatibility with third-party libraries. This follows the same pattern used for UIViewOperationQueue in D93069524. Also clean up direct usages: - UIViewOperationQueue: remove NativeViewHierarchyManager constructor parameter and getNativeViewHierarchyManager() method - UIImplementation: stop creating NativeViewHierarchyManager instance - ReactAndroid.api: update API surface to reflect constructor change UIBlock.kt is left unchanged — its execute(NativeViewHierarchyManager) signature is kept for backward compatibility with third-party libraries (expo-modules-core, react-native-maps, gesture-handler, view-shot). Changelog: [Android][Removed] - Stub out NativeViewHierarchyManager (Legacy Architecture) Reviewed By: NickGerleman Differential Revision: D93801180 fbshipit-source-id: 20b2e47c338b8beb4f78593045f49b1a52efa966
1 parent 4f7fa58 commit c2156a8

File tree

4 files changed

+109
-775
lines changed

4 files changed

+109
-775
lines changed

packages/react-native/ReactAndroid/api/ReactAndroid.api

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4407,7 +4407,7 @@ public abstract interface class com/facebook/react/uimanager/UIManagerModule$Cus
44074407

44084408
public class com/facebook/react/uimanager/UIViewOperationQueue {
44094409
public static final field DEFAULT_MIN_TIME_LEFT_IN_FRAME_FOR_NONBATCHED_OPERATION_MS I
4410-
public fun <init> (Lcom/facebook/react/bridge/ReactApplicationContext;Lcom/facebook/react/uimanager/NativeViewHierarchyManager;I)V
4410+
public fun <init> (Lcom/facebook/react/bridge/ReactApplicationContext;I)V
44114411
public fun addRootView (ILandroid/view/View;)V
44124412
public fun dispatchViewUpdates (IJJ)V
44134413
public fun enqueueClearJSResponder ()V

0 commit comments

Comments
 (0)