File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import {NativeEventSubscription} from '../EventEmitter/RCTNativeAppEventEmitter'
24
24
* App States
25
25
* active - The app is running in the foreground
26
26
* background - The app is running in the background. The user is either in another app or on the home screen
27
- * inactive [iOS] - This is a transition state that currently never happens for typical React Native apps .
27
+ * 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 .
28
28
* unknown [iOS] - Initial value until the current app state is determined
29
29
* extension [iOS] - The app is running as an app extension
30
30
*
Original file line number Diff line number Diff line change 20
20
static NSDictionary *states;
21
21
static dispatch_once_t onceToken;
22
22
dispatch_once (&onceToken, ^{
23
- states = @{@(UIApplicationStateActive) : @" active" , @(UIApplicationStateBackground) : @" background" };
23
+ states = @{
24
+ @(UIApplicationStateActive) : @" active" ,
25
+ @(UIApplicationStateBackground) : @" background" ,
26
+ @(UIApplicationStateInactive) : @" inactive"
27
+ };
24
28
});
25
29
26
30
if (RCTRunningInAppExtension ()) {
You can’t perform that action at this time.
0 commit comments