From 6073855c59517b0c6285320159d1ca41a71eeddb Mon Sep 17 00:00:00 2001 From: David Vacca Date: Fri, 20 Oct 2023 22:37:50 -0700 Subject: [PATCH] Mark LazyReactPackage as Deprecated in the new architecture of React Native (#41097) Summary: LazyReactPackage is beig replaced by TurboReactPackage / BaseReactPackage, that's why I'm docummenting LazyReactPackage as Deprecated changelog: [internal] internal Reviewed By: arushikesarwani94 Differential Revision: D50338301 --- .../src/main/java/com/facebook/react/LazyReactPackage.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/LazyReactPackage.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/LazyReactPackage.java index 98a013d135ebdd..bf4086ee4508c8 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/LazyReactPackage.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/LazyReactPackage.java @@ -25,11 +25,8 @@ import java.util.List; import java.util.Map; -/** - * React package supporting lazy creation of native modules. - * - *

TODO(t11394819): Make this default and deprecate ReactPackage - */ +/** React package supporting lazy creation of native modules. */ +@Deprecated(since = "This class is deprecated, please use BaseReactPackage instead.") public abstract class LazyReactPackage implements ReactPackage { @Deprecated