Skip to content

Latest commit

 

History

History
37 lines (19 loc) · 1.03 KB

File metadata and controls

37 lines (19 loc) · 1.03 KB

@appzung/react-native-code-push v11.0.0-rc3


@appzung/react-native-code-push / UpdateState

Enumeration: UpdateState

Indicates the state that an update is currently in.

Enumeration Members

LATEST

LATEST: number

Indicates than an update represents the latest available release, and can be either currently running or pending.


PENDING

PENDING: number

Indicates than an update has been installed, but the app hasn't been restarted yet in order to apply it.

This can be useful for determining whether there is a pending update, which you may want to force a programmatic restart (via restartApp) in order to apply.


RUNNING

RUNNING: number

Indicates that an update represents the version of the app that is currently running.

This can be useful for identifying attributes about the app, for scenarios such as displaying the release description in a "what's new?" dialog or reporting the latest version to an analytics and/or crash reporting service.