From d0bb2e49c7f6ad23b1c074b26e196e65d8578f98 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Tue, 3 Oct 2023 19:57:38 -0700 Subject: [PATCH] Update deprecation documentation (#39766) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39766 Update deprecation documentation changelog: [internal] internal bypass-github-export-checks Reviewed By: cortinico Differential Revision: D49834868 fbshipit-source-id: 729a51495730a58475e1dbc95400f1ef7dc39c59 --- .../facebook/react/defaults/DefaultReactActivityDelegate.kt | 4 +++- .../com/facebook/react/module/annotations/ReactModule.java | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactActivityDelegate.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactActivityDelegate.kt index a73565f35a977f..9b22bbdb51bd57 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactActivityDelegate.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/defaults/DefaultReactActivityDelegate.kt @@ -29,7 +29,9 @@ open class DefaultReactActivityDelegate( @Deprecated( message = - "Creating DefaultReactActivityDelegate with both fabricEnabled and concurrentReactEnabled is deprecated. Please pass only one boolean value that will be used for both flags", + "Creating DefaultReactActivityDelegate with both fabricEnabled and " + + "concurrentReactEnabled is deprecated. Please pass only one boolean value that will" + + " be used for both flags", level = DeprecationLevel.WARNING, replaceWith = ReplaceWith("DefaultReactActivityDelegate(activity, mainComponentName, fabricEnabled)")) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/module/annotations/ReactModule.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/module/annotations/ReactModule.java index 14bea35dc6e8f3..ff9fa926745db5 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/module/annotations/ReactModule.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/module/annotations/ReactModule.java @@ -16,9 +16,6 @@ /** * Annotation for use on {@link com.facebook.react.bridge.BaseJavaModule}s to describe properties * for that module. - * - * @deprecated This property is unused and it's planning to be removed in a future version of React - * Native. Please refrain from using it. */ @Retention(RUNTIME) @Target(TYPE) @@ -40,6 +37,9 @@ /** * Whether this module has constants to add, defaults to true as that is safer for when a correct * annotation is not included + * + * @deprecated This property is unused and it's planning to be removed in a future version of + * React Native. Please refrain from using it. */ @Deprecated boolean hasConstants() default true;