@appzung/react-native-code-push
Version:
React Native plugin for the CodePush service
27 lines (25 loc) • 1.43 kB
JavaScript
import { NativeRNAppZungCodePushModule } from "../internals/NativeRNAppZungCodePushModule.js";
/**
* Indicates the state that an update is currently in.
*/
export let UpdateState = function (UpdateState) {
/**
* 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.
*/
UpdateState[UpdateState["RUNNING"] = NativeRNAppZungCodePushModule.getConstants().codePushUpdateStateRunning] = "RUNNING";
/**
* 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.
*/
UpdateState[UpdateState["PENDING"] = NativeRNAppZungCodePushModule.getConstants().codePushUpdateStatePending] = "PENDING";
/**
* Indicates than an update represents the latest available release, and can be either currently running or pending.
*/
UpdateState[UpdateState["LATEST"] = NativeRNAppZungCodePushModule.getConstants().codePushUpdateStateLatest] = "LATEST";
return UpdateState;
}({});
//# sourceMappingURL=UpdateState.enum.js.map
;