From 6f68ba3440b9c63aa0878e3380a9cffd512544a9 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Wed, 25 Oct 2023 11:29:39 -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