diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index e94080b44e3c..520abffd4f6a 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -4358,6 +4358,7 @@ public class com/facebook/react/uimanager/UIManagerModule : com/facebook/react/b public fun getEventDispatcher ()Lcom/facebook/react/uimanager/events/EventDispatcher; public fun getName ()Ljava/lang/String; public fun getPerformanceCounters ()Ljava/util/Map; + public fun getUIImplementation ()Lcom/facebook/react/uimanager/UIImplementation; public fun getViewManagerRegistry_DO_NOT_USE ()Lcom/facebook/react/uimanager/ViewManagerRegistry; public fun initialize ()V public fun invalidate ()V diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java index 7af174bfabc3..4e4cc02dfc52 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/UIManagerModule.java @@ -205,6 +205,16 @@ public ViewManagerRegistry getViewManagerRegistry_DO_NOT_USE() { return mViewManagerRegistry; } + /** + * @deprecated This method is a stub retained for backward compatibility with third-party + * libraries. It always returns null. UIImplementation is part of the Legacy Architecture and + * will be removed in a future release. + */ + @Deprecated + public @Nullable UIImplementation getUIImplementation() { + return null; + } + private static Map createConstants(ViewManagerResolver viewManagerResolver) { ReactMarker.logMarker(CREATE_UI_MANAGER_MODULE_CONSTANTS_START); SystraceMessage.beginSection(Systrace.TRACE_TAG_REACT, "CreateUIManagerConstants")