From a7b0619846ad4e25626e90e698f40a077a768f46 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Thu, 24 Apr 2025 22:06:30 -0700 Subject: [PATCH] Introduce InteropLegacyArchitecture annotation (#50906) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50906 Annotation to mark classes or functions that are part of the interop APIs that provide support for legacy architecture APIs in the new architecture of React Native . changelog: [internal] internal Reviewed By: shwanton Differential Revision: D73407613 fbshipit-source-id: 887a14ca4dea891b50e7df01e0ffff5064cd43ea --- .../internal/InteropLegacyArchitecture.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/internal/InteropLegacyArchitecture.kt diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/internal/InteropLegacyArchitecture.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/internal/InteropLegacyArchitecture.kt new file mode 100644 index 00000000000..93ec88717b3 --- /dev/null +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/common/annotations/internal/InteropLegacyArchitecture.kt @@ -0,0 +1,16 @@ +/* + * 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.internal + +/** + * Annotation to mark classes or functions that are part of the interop APIs that provide support + * for legacy architecture APIs in the new architecture of React Native. + */ +@Retention(AnnotationRetention.SOURCE) +@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION) +public annotation class InteropLegacyArchitecture()