Skip to content

Commit 58c9373

Browse files
committed
Deprecate Legacy Architecture classes belonging to com/facebook/react/uimanager
Summary: Deprecate large subset of Legacy Architecture classes belonging to com/facebook/react/uimanager Differential Revision: D79672293
1 parent c784886 commit 58c9373

File tree

6 files changed

+13
-1
lines changed

6 files changed

+13
-1
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@
6868
*/
6969
@NotThreadSafe
7070
@LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR)
71+
@Deprecated(
72+
since = "This class is part of Legacy Architecture and will be removed in a future release")
7173
public class NativeViewHierarchyManager {
7274

7375
static {

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyOptimizer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
* depending on where the views being added/removed are attached in the optimized hierarchy
5050
*/
5151
@LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR)
52+
@Deprecated(
53+
since = "This class is part of Legacy Architecture and will be removed in a future release")
5254
public class NativeViewHierarchyOptimizer {
5355

5456
static {

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIBlock.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ package com.facebook.react.uimanager
99

1010
/** A task to execute on the UI View for third party libraries. */
1111
public fun interface UIBlock {
12-
public fun execute(nativeViewHierarchyManager: NativeViewHierarchyManager)
12+
public fun execute(
13+
@Suppress("DEPRECATION") nativeViewHierarchyManager: NativeViewHierarchyManager
14+
)
1315
}

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
* hierarchy that is then mapped to a native view hierarchy.
4343
*/
4444
@LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR)
45+
@Deprecated(
46+
since = "This class is part of Legacy Architecture and will be removed in a future release")
4547
public class UIImplementation {
4648
static {
4749
LegacyArchitectureLogger.assertLegacyArchitecture(

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIViewOperationQueue.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
* for operations queue to save on allocations
5050
*/
5151
@LegacyArchitecture(logLevel = LegacyArchitectureLogLevel.ERROR)
52+
@Deprecated(
53+
since = "This class is part of Legacy Architecture and will be removed in a future release")
5254
public class UIViewOperationQueue {
5355

5456
static {

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputShadowNode.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8+
@file:Suppress("DEPRECATION")
9+
810
package com.facebook.react.views.textinput
911

1012
import android.annotation.SuppressLint

0 commit comments

Comments
 (0)