-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
36 lines (31 loc) · 1007 Bytes
/
index.js
File metadata and controls
36 lines (31 loc) · 1007 Bytes
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
28
29
30
31
32
33
34
35
36
/**
* @format
*/
import '~/Stores/reactotronConfig';
import 'react-native-reanimated';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import React from 'react';
import {AppRegistry, LogBox} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
import stores from './src/Stores';
import {Provider} from 'mobx-react';
import CodePush from 'react-native-code-push';
import 'react-native-get-random-values';
LogBox.ignoreAllLogs(true);
LogBox.ignoreLogs([
"[react-native-gesture-handler] Seems like you're using an old API with gesture components, check out new Gestures system!",
]);
const MobX = () => (
<SafeAreaProvider>
<Provider {...stores}>
<App />
</Provider>
</SafeAreaProvider>
);
const AppBundle = CodePush({
checkFrequency: CodePush.CheckFrequency.ON_APP_RESUME,
installMode: CodePush.InstallMode.ON_NEXT_SUSPEND,
minimumBackgroundDuration: 15,
})(MobX);
AppRegistry.registerComponent(appName, () => AppBundle);