Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/react-native/Libraries/AppState/AppState.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ import {NativeEventSubscription} from '../EventEmitter/RCTNativeAppEventEmitter'
*
* App States
* active - The app is running in the foreground
* background - The app is running in the background. The user is either in another app or on the home screen
* background - The app is running in the background. The user is either in another app,
* on the home screen
* [Android only] on another Activity, including temporary system
* activities such as autofill credential pickers (even if launched by your app or the system)
* inactive [iOS] - This is a transition state that happens when the app launches, is asking for permissions or when a call or SMS message is received.
* unknown [iOS] - Initial value until the current app state is determined
* extension [iOS] - The app is running as an app extension
Expand Down
3 changes: 2 additions & 1 deletion packages/react-native/Libraries/AppState/AppState.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ import NativeAppState from './NativeAppState';
* background - The app is running in the background. The user is either:
* - in another app
* - on the home screen
* - @platform android - on another Activity (even if it was launched by your app)
* - [Android only] on another Activity, including temporary system activities such
* as autofill credential pickers (even if launched by your app or the system)
* @platform ios - inactive - This is a state that occurs when transitioning between foreground & background, and during periods of inactivity such as entering the multitasking view, opening the Notification Center or in the event of an incoming call.
*/
export type AppStateStatus =
Expand Down
Loading