-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
14 lines (12 loc) · 959 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/** @format */
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
//AppRegistry.registerComponent(appName, () => App);
import codePush from "react-native-code-push";
//codePush.notifyApplicationReady();
let codePushOptions = { checkFrequency: codePush.CheckFrequency.MANUAL };
let codePushOptionss = { checkFrequency: codePush.CheckFrequency.ON_APP_RESUME, updateDialog: { appendReleaseDescription: true, descriptionPrefix: " Description: ", title: "Mise à jour disponible!", mandatoryUpdateMessage:"Installer la nouvelle mise à jour ??", optionalUpdateMessage: "Installer la nouvelle mise à jour ?", optionalIgnoreButtonLabel: "Surtout pas!",
optionalInstallButtonLabel: "Bien sûr!"}, installMode: codePush.InstallMode.IMMEDIATE };
//let codePushOptions = { checkFrequency: codePush.CheckFrequency.ON_APP_RESUME };
AppRegistry.registerComponent(appName, () => codePush(codePushOptions)(App));