From 40a0cdbc99746f18ca15c48f3d8f03cdad1635af Mon Sep 17 00:00:00 2001 From: David Vacca Date: Fri, 10 Jan 2025 13:58:28 -0800 Subject: [PATCH] Introduce ViewManagerInterface (#48548) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48548 In this diff I'm introducing the new public API ViewManagerInterface, this will be used in the next diffs of the stack to be implemented by all viewManagerInterfaces that are code-gen when using the new architecture changelog: [Android][Changed] Introduce new public API ViewManagerInterface Reviewed By: javache Differential Revision: D67957886 fbshipit-source-id: 372bf99e4c977c3a4d2252b54371ec9f0dae6e9f --- .../react-native/ReactAndroid/api/ReactAndroid.api | 3 +++ .../uimanager/ViewManagerWithGeneratedInterface.kt | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerWithGeneratedInterface.kt diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index 8272fd93797214..d9539ba809ce87 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -5273,6 +5273,9 @@ public abstract interface class com/facebook/react/uimanager/ViewManagerResolver public abstract fun getViewManagerNames ()Ljava/util/Collection; } +public abstract interface class com/facebook/react/uimanager/ViewManagerWithGeneratedInterface { +} + public final class com/facebook/react/uimanager/ViewProps { public static final field ACCESSIBILITY_ACTIONS Ljava/lang/String; public static final field ACCESSIBILITY_COLLECTION Ljava/lang/String; diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerWithGeneratedInterface.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerWithGeneratedInterface.kt new file mode 100644 index 00000000000000..c6bd71173a7f6e --- /dev/null +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManagerWithGeneratedInterface.kt @@ -0,0 +1,11 @@ +/* + * 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.uimanager + +/** Marker interface to be extended by all code-generated ViewManagerInterface. */ +public interface ViewManagerWithGeneratedInterface {}