From b8534e60fc163c220ad71859fa9b2e24d7dfd596 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Thu, 12 Oct 2023 15:10:26 -0700 Subject: [PATCH] Introduce StableReactNativeAPI annotation (#40879) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/40879 Introduce StableReactNativeAPI annotation, the goal of this annotation is to describe classes, interfaces and members that are considered Stable and will remain part of the new architecture of React Native changelog: [internal] internal Reviewed By: arushikesarwani94 Differential Revision: D50195996 fbshipit-source-id: a64a27217a6fd885d2c188a6847565b3413bb232 --- .../common/annotations/StableReactNativeAPI.kt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/StableReactNativeAPI.kt diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/StableReactNativeAPI.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/StableReactNativeAPI.kt new file mode 100644 index 00000000000..76a5b4dc44f --- /dev/null +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/StableReactNativeAPI.kt @@ -0,0 +1,13 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +package com.facebook.react.common.annotations + +/** This API is stable and is likely not to change in the New Architecture of React Native. */ +@Retention(AnnotationRetention.SOURCE) +@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY) +annotation class StableReactNativeAPI