From e15e76950ae660acea84556c826f5043ba131693 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Fri, 27 Oct 2023 11:13:09 -0700 Subject: [PATCH] Mark LazyReactPackage as Deprecated in the new architecture of React Native (#41097) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41097 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 fbshipit-source-id: 6093772400ccaf928a549c078791845513dcb56a --- .../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