27 lines
726 B
TypeScript
27 lines
726 B
TypeScript
// Metro module 16734 (f16735).
|
|
import { NativeModules } from "react-native";
|
|
import AlertActionCreators from "../AlertActionCreators";
|
|
import { intl, t } from "../../intl/index.native";
|
|
let c12062_4 = false;
|
|
const r18 = {
|
|
prepareUpdate: (a0) => {
|
|
if (a0) {
|
|
AlertActionCreators.show({
|
|
title: intl.string(t.GQZdmI),
|
|
body: intl.string(t.Fizu9y),
|
|
confirmText: intl.string(t.UefCDS),
|
|
cancelText: intl.string(t["1SzcG6"]),
|
|
onConfirm: () => NativeModules.BundleUpdaterManager.reload()
|
|
});
|
|
c12062_4 = true;
|
|
}
|
|
},
|
|
deferUpdate: () => {
|
|
if (c12062_4) {
|
|
c12062_4 = false;
|
|
NativeModules.BundleUpdaterManager.reload();
|
|
}
|
|
}
|
|
};
|
|
export default r18;
|