-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
27 lines (25 loc) · 824 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* @format
*/
import {AppRegistry} from 'react-native';
import App from './src/Router';
import {name as appName} from './app.json';
import codePush from 'react-native-code-push';
import moment from 'moment/min/moment-with-locales';
moment.locale('tr');
const codePushOptions = {
/*updateDialog: {
title: '',
appendReleaseDescription: true,
descriptionPrefix: '',
mandatoryUpdateMessage: '',
mandatoryContinueButtonLabel: '',
optionalIgnoreButtonLabel: '',
optionalInstallButtonLabel: ',
optionalUpdateMessage: ''
},*/
checkFrequency: codePush.CheckFrequency.ON_APP_START,
installMode: codePush.InstallMode.IMMEDIATE,
};
const RootComponent = __DEV__ ? App : codePush(codePushOptions)(App);
AppRegistry.registerComponent(appName, () => RootComponent);