@appzung/react-native-code-push
Version:
React Native plugin for the CodePush service
18 lines (17 loc) • 771 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.restartApp = restartApp;
var _NativeRNAppZungCodePushModule = require("./internals/NativeRNAppZungCodePushModule.js");
/**
* Immediately restarts the app.
*
* If there is an update pending, it will be immediately displayed to the end user. Otherwise, calling this method simply has the same behavior as the end user killing and restarting the process.
*
* @param onlyIfUpdateIsPending Indicates whether you want the restart to no-op if there isn't currently a pending update.
*/
function restartApp(onlyIfUpdateIsPending = false) {
return _NativeRNAppZungCodePushModule.NativeRNAppZungCodePushModule.restartApp(onlyIfUpdateIsPending);
}
//# sourceMappingURL=restartApp.js.map
;