diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index ef61e22a660..e36845bccfc 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -2961,19 +2961,6 @@ public final class com/facebook/react/modules/fresco/ReactNetworkImageRequest$Co public static synthetic fun fromBuilderWithHeaders$default (Lcom/facebook/react/modules/fresco/ReactNetworkImageRequest$Companion;Lcom/facebook/imagepipeline/request/ImageRequestBuilder;Lcom/facebook/react/bridge/ReadableMap;Lcom/facebook/react/modules/fresco/ImageCacheControl;ILjava/lang/Object;)Lcom/facebook/react/modules/fresco/ReactNetworkImageRequest; } -public final class com/facebook/react/modules/i18nmanager/I18nManagerModule : com/facebook/fbreact/specs/NativeI18nManagerSpec { - public static final field Companion Lcom/facebook/react/modules/i18nmanager/I18nManagerModule$Companion; - public static final field NAME Ljava/lang/String; - public fun (Lcom/facebook/react/bridge/ReactApplicationContext;)V - public fun allowRTL (Z)V - public fun forceRTL (Z)V - public fun getTypedExportedConstants ()Ljava/util/Map; - public fun swapLeftAndRightInRTL (Z)V -} - -public final class com/facebook/react/modules/i18nmanager/I18nManagerModule$Companion { -} - public final class com/facebook/react/modules/i18nmanager/I18nUtil { public static final field Companion Lcom/facebook/react/modules/i18nmanager/I18nUtil$Companion; public final fun allowRTL (Landroid/content/Context;Z)V diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.kt index 70c8d4edd9e..7551edda59f 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/i18nmanager/I18nManagerModule.kt @@ -13,8 +13,9 @@ import com.facebook.react.module.annotations.ReactModule /** [com.facebook.react.bridge.NativeModule] that allows JS to set allowRTL and get isRTL status. */ @ReactModule(name = NativeI18nManagerSpec.NAME) -public class I18nManagerModule(context: ReactApplicationContext?) : NativeI18nManagerSpec(context) { - public override fun getTypedExportedConstants(): Map { +internal class I18nManagerModule(context: ReactApplicationContext?) : + NativeI18nManagerSpec(context) { + override fun getTypedExportedConstants(): Map { val context = getReactApplicationContext() val locale = context.resources.configuration.locales[0] @@ -36,7 +37,7 @@ public class I18nManagerModule(context: ReactApplicationContext?) : NativeI18nMa I18nUtil.instance.swapLeftAndRightInRTL(getReactApplicationContext(), value) } - public companion object { - public const val NAME: String = NativeI18nManagerSpec.NAME + companion object { + const val NAME: String = NativeI18nManagerSpec.NAME } }