From a79a1123c9779cc5d4a251c1d558146fa6753f45 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Wed, 8 Jan 2025 16:15:58 -0800 Subject: [PATCH] Internalize RootViewManager (#48545) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48545 RootViewManager is meant to be used by the internals of React Native, ther are no external usages. I'm internalizing it changelog: [internal] internal Reviewed By: christophpurrer Differential Revision: D67952865 fbshipit-source-id: 4c7f7de01c4de7ae00f62bd4f5b49e0082ec3f2b --- .../react-native/ReactAndroid/api/ReactAndroid.api | 11 ----------- .../com/facebook/react/uimanager/RootViewManager.kt | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index 20254ec9740c72..489dae1d463d7f 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -4843,17 +4843,6 @@ public abstract interface class com/facebook/react/uimanager/RootView { public abstract fun onChildStartedNativeGesture (Landroid/view/View;Landroid/view/MotionEvent;)V } -public final class com/facebook/react/uimanager/RootViewManager : com/facebook/react/uimanager/ViewGroupManager { - public static final field Companion Lcom/facebook/react/uimanager/RootViewManager$Companion; - public static final field REACT_CLASS Ljava/lang/String; - public fun ()V - public synthetic fun createViewInstance (Lcom/facebook/react/uimanager/ThemedReactContext;)Landroid/view/View; - public fun getName ()Ljava/lang/String; -} - -public final class com/facebook/react/uimanager/RootViewManager$Companion { -} - public final class com/facebook/react/uimanager/RootViewUtil { public static final field INSTANCE Lcom/facebook/react/uimanager/RootViewUtil; public static final fun getRootView (Landroid/view/View;)Lcom/facebook/react/uimanager/RootView; diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootViewManager.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootViewManager.kt index 68e677cb170a8e..b78b284476b21c 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootViewManager.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/RootViewManager.kt @@ -11,7 +11,7 @@ import android.view.ViewGroup import android.widget.FrameLayout /** View manager for ReactRootView components. */ -public class RootViewManager : ViewGroupManager() { +internal class RootViewManager : ViewGroupManager() { override public fun getName(): String = REACT_CLASS