diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java index f7b9ae846483..25b8e4d954e3 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java @@ -31,16 +31,19 @@ public class NativeViewHierarchyManager { /** * @deprecated Use new architecture instead. */ + @Deprecated public NativeViewHierarchyManager(ViewManagerRegistry viewManagers) {} /** * @deprecated Use new architecture instead. */ + @Deprecated public NativeViewHierarchyManager(ViewManagerRegistry viewManagers, RootViewManager manager) {} /** * @deprecated Use new architecture instead. */ + @Deprecated public final synchronized @Nullable View resolveView(int tag) { return null; } @@ -48,6 +51,7 @@ public NativeViewHierarchyManager(ViewManagerRegistry viewManagers, RootViewMana /** * @deprecated Use new architecture instead. */ + @Deprecated public final synchronized @Nullable ViewManager resolveViewManager(int tag) { return null; } @@ -55,21 +59,25 @@ public NativeViewHierarchyManager(ViewManagerRegistry viewManagers, RootViewMana /** * @deprecated Use new architecture instead. */ + @Deprecated public void setLayoutAnimationEnabled(boolean enabled) {} /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized void updateInstanceHandle(int tag, long instanceHandle) {} /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized void updateProperties(int tag, ReactStylesDiffMap props) {} /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized void updateViewExtraData(int tag, Object extraData) {} /** @@ -82,6 +90,7 @@ public void updateLayout(int tag, int x, int y, int width, int height) {} /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized void updateLayout( int parentTag, int tag, @@ -94,6 +103,7 @@ public synchronized void updateLayout( /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized long getInstanceHandle(int reactTag) { return 0; } @@ -101,6 +111,7 @@ public synchronized long getInstanceHandle(int reactTag) { /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized void createView( ThemedReactContext themedContext, int tag, @@ -110,6 +121,7 @@ public synchronized void createView( /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized void manageChildren( int tag, @Nullable int[] indicesToRemove, @@ -119,31 +131,37 @@ public synchronized void manageChildren( /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized void setChildren(int tag, ReadableArray childrenTags) {} /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized void addRootView(int tag, View view) {} /** * @deprecated Use new architecture instead. */ + @Deprecated protected final synchronized void addRootViewGroup(int tag, View view) {} /** * @deprecated Use new architecture instead. */ + @Deprecated protected synchronized void dropView(View view) {} /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized void removeRootView(int rootViewTag) {} /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized int getRootViewNum() { return 0; } @@ -151,16 +169,19 @@ public synchronized int getRootViewNum() { /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized void measure(int tag, int[] outputBuffer) {} /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized void measureInWindow(int tag, int[] outputBuffer) {} /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized int findTargetTagForTouch(int reactTag, float touchX, float touchY) { return 0; } @@ -168,12 +189,14 @@ public synchronized int findTargetTagForTouch(int reactTag, float touchX, float /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized void setJSResponder( int reactTag, int initialReactTag, boolean blockNativeResponder) {} /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized void clearJSResponder() {} /** @@ -186,11 +209,13 @@ public synchronized void dispatchCommand( /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized void dispatchCommand( int reactTag, String commandId, @Nullable ReadableArray args) {} /** * @deprecated Use new architecture instead. */ + @Deprecated public synchronized void sendAccessibilityEvent(int tag, int eventType) {} } diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java index 0a8804ef86f6..3b8d396682d1 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java @@ -58,6 +58,7 @@ protected UIImplementation( /** * @deprecated This method is a stub and always returns null. */ + @Deprecated protected ReactShadowNode createRootShadowNode() { return null; } @@ -65,6 +66,7 @@ protected ReactShadowNode createRootShadowNode() { /** * @deprecated This method is a stub and always returns null. */ + @Deprecated protected ReactShadowNode createShadowNode(String className) { return null; } @@ -72,6 +74,7 @@ protected ReactShadowNode createShadowNode(String className) { /** * @deprecated This method is a stub and always returns null. */ + @Deprecated public final ReactShadowNode resolveShadowNode(int reactTag) { return null; } @@ -79,6 +82,7 @@ public final ReactShadowNode resolveShadowNode(int reactTag) { /** * @deprecated This method is a stub and always returns null. */ + @Deprecated protected final @Nullable ViewManager resolveViewManager(String className) { return null; }