diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index 95f69064a3888a..2a61b2759e93d2 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -3056,26 +3056,6 @@ public abstract interface class com/facebook/react/modules/appregistry/AppRegist public abstract fun unmountApplicationComponentAtRootTag (I)V } -public final class com/facebook/react/modules/appstate/AppStateModule : com/facebook/fbreact/specs/NativeAppStateSpec, com/facebook/react/bridge/LifecycleEventListener, com/facebook/react/bridge/WindowFocusChangeListener { - public static final field APP_STATE_ACTIVE Ljava/lang/String; - public static final field APP_STATE_BACKGROUND Ljava/lang/String; - public static final field Companion Lcom/facebook/react/modules/appstate/AppStateModule$Companion; - public static final field NAME Ljava/lang/String; - public fun (Lcom/facebook/react/bridge/ReactApplicationContext;)V - public fun addListener (Ljava/lang/String;)V - public fun getCurrentAppState (Lcom/facebook/react/bridge/Callback;Lcom/facebook/react/bridge/Callback;)V - public fun getTypedExportedConstants ()Ljava/util/Map; - public fun invalidate ()V - public fun onHostDestroy ()V - public fun onHostPause ()V - public fun onHostResume ()V - public fun onWindowFocusChange (Z)V - public fun removeListeners (D)V -} - -public final class com/facebook/react/modules/appstate/AppStateModule$Companion { -} - public class com/facebook/react/modules/blob/BlobModule : com/facebook/fbreact/specs/NativeBlobModuleSpec { public fun (Lcom/facebook/react/bridge/ReactApplicationContext;)V public fun addNetworkingHandler ()V diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/AppStateModule.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/AppStateModule.kt index 86177fae8521f3..543ab79fba8677 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/AppStateModule.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appstate/AppStateModule.kt @@ -18,7 +18,7 @@ import com.facebook.react.common.LifecycleState import com.facebook.react.module.annotations.ReactModule @ReactModule(name = NativeAppStateSpec.NAME) -public class AppStateModule(reactContext: ReactApplicationContext) : +internal class AppStateModule(reactContext: ReactApplicationContext) : NativeAppStateSpec(reactContext), LifecycleEventListener, WindowFocusChangeListener { private var appState: String