diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index 195aa60f04a..6c6be1bcb07 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -4027,11 +4027,6 @@ public abstract interface class com/facebook/react/uimanager/ReactRoot { public abstract fun setShouldLogContentAppeared (Z)V } -public final class com/facebook/react/uimanager/ReactRootViewTagGenerator { - public static final field INSTANCE Lcom/facebook/react/uimanager/ReactRootViewTagGenerator; - public static final fun getNextRootViewTag ()I -} - public abstract interface class com/facebook/react/uimanager/ReactShadowNode { public abstract fun addChildAt (Lcom/facebook/react/uimanager/ReactShadowNode;I)V public abstract fun addNativeChildAt (Lcom/facebook/react/uimanager/ReactShadowNode;I)V diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRootViewTagGenerator.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRootViewTagGenerator.kt index a42ae379b57..8227ec15ba7 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRootViewTagGenerator.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRootViewTagGenerator.kt @@ -8,7 +8,7 @@ package com.facebook.react.uimanager /** Incremental counter for React Root View tag. */ -public object ReactRootViewTagGenerator { +internal object ReactRootViewTagGenerator { // Keep in sync with ReactRootViewTagGenerator.h - see that file for an explanation on why the // increment here is 10. @@ -17,6 +17,6 @@ public object ReactRootViewTagGenerator { @JvmStatic @Synchronized - public fun getNextRootViewTag(): Int = + fun getNextRootViewTag(): Int = nextRootViewTag.also { nextRootViewTag += ROOT_VIEW_TAG_INCREMENT } }