-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathindex.js
21 lines (20 loc) · 984 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { registerRootComponent } from "expo";
import codePush from "react-native-code-push";
import App from "./App";
import { CODE_PUSH_DEPLOYMENT_KEY } from "@env";
import { AppI18n } from "./localize";
const codePushOptions = {
updateDialog: {
optionalUpdateMessage: AppI18n.t("update.optionalUpdateMessage"),
optionalInstallButtonLabel: AppI18n.t("update.optionalInstallButtonLabel"),
optionalIgnoreButtonLabel: AppI18n.t("update.optionalIgnoreButtonLabel"),
title: AppI18n.t("update.title"),
mandatoryUpdateMessage: AppI18n.t("update.mandatoryUpdateMessage"),
mandatoryContinueButtonLabel: AppI18n.t("update.mandatoryContinueButtonLabel"),
},
deploymentKey: CODE_PUSH_DEPLOYMENT_KEY,
};
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
registerRootComponent(codePush(codePushOptions)(App));