-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
index.js
37 lines (30 loc) · 1.16 KB
/
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
28
29
30
31
32
33
34
35
36
37
import 'react-native-gesture-handler';
import 'react-native-console-time-polyfill';
import { AppRegistry } from 'react-native';
import { name as appName, share as shareName } from './app.json';
import { isFDroidBuild } from './app/lib/constants';
import { isAndroid } from './app/lib/methods/helpers';
if (__DEV__) {
require('./app/ReactotronConfig');
} else {
console.log = () => {};
console.time = () => {};
console.timeLog = () => {};
console.timeEnd = () => {};
console.warn = () => {};
console.count = () => {};
console.countReset = () => {};
console.error = () => {};
console.info = () => {};
}
if (!isFDroidBuild && isAndroid) {
require('./app/lib/notifications/videoConf/backgroundNotificationHandler');
}
AppRegistry.registerComponent(appName, () => require('./app/index').default);
// For storybook, comment everything above and uncomment below
// import 'react-native-gesture-handler';
// import 'react-native-console-time-polyfill';
// import { AppRegistry } from 'react-native';
// import { name as appName } from './app.json';
// require('./app/ReactotronConfig');
// AppRegistry.registerComponent(appName, () => require('./.storybook/index').default);