Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit b895e99

Browse files
Add ON_NEXT_SUSPEND install mode to the react-native-code-push.d.ts file (#819)
1 parent 56a0f1f commit b895e99

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

typings/react-native-code-push.d.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,14 @@ declare namespace CodePush {
304304
* Indicates that you want to install the update, but don't want to restart the
305305
* app until the next time the end user resumes it from the background.
306306
*/
307-
ON_NEXT_RESUME
307+
ON_NEXT_RESUME,
308+
309+
/**
310+
* Indicates that you want to install the update when the app is in the background,
311+
* but only after it has been in the background for "minimumBackgroundDuration" seconds (0 by default),
312+
* so that user context isn't lost unless the app suspension is long enough to not matter.
313+
*/
314+
ON_NEXT_SUSPEND
308315
}
309316

310317
/**

0 commit comments

Comments
 (0)