diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index 0794229fbc6..a64ef7e5e42 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -5385,11 +5385,6 @@ public abstract interface class com/facebook/react/viewmanagers/UnimplementedNat public abstract fun setName (Landroid/view/View;Ljava/lang/String;)V } -public final class com/facebook/react/views/common/ContextUtils { - public static final field INSTANCE Lcom/facebook/react/views/common/ContextUtils; - public static final fun findContextOfType (Landroid/content/Context;Ljava/lang/Class;)Ljava/lang/Object; -} - public final class com/facebook/react/views/drawer/ReactDrawerLayout : androidx/drawerlayout/widget/DrawerLayout { public fun (Lcom/facebook/react/bridge/ReactContext;)V public fun onInterceptTouchEvent (Landroid/view/MotionEvent;)Z diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/common/ContextUtils.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/common/ContextUtils.kt index 64ca9577f8f..71d4f1af002 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/common/ContextUtils.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/common/ContextUtils.kt @@ -13,7 +13,7 @@ import android.content.ContextWrapper /** * Class containing static methods involving manipulations of Contexts and their related subclasses. */ -public object ContextUtils { +internal object ContextUtils { /** * Returns the nearest context in the chain (as defined by ContextWrapper.getBaseContext()) which @@ -24,7 +24,7 @@ public object ContextUtils { * @return the first context which is an instance of the specified class, or null if none exists */ @JvmStatic - public fun findContextOfType(context: Context?, clazz: Class): T? { + fun findContextOfType(context: Context?, clazz: Class): T? { var currentContext = context while (!clazz.isInstance(currentContext)) { if (currentContext is ContextWrapper) {