-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathindex.js
More file actions
29 lines (24 loc) · 913 Bytes
/
index.js
File metadata and controls
29 lines (24 loc) · 913 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
import 'react-native-gesture-handler';
import 'react-native-console-time-polyfill';
import { AppRegistry, LogBox } from 'react-native';
import { name as appName } from './app.json';
import { isAndroid } from './app/lib/methods/helpers';
if (process.env.USE_STORYBOOK) {
AppRegistry.registerComponent(appName, () => require('./.rnstorybook/index').default);
} else {
if (!__DEV__) {
console.log = () => {};
console.time = () => {};
console.timeLog = () => {};
console.timeEnd = () => {};
console.warn = () => {};
console.count = () => {};
console.countReset = () => {};
console.error = () => {};
console.info = () => {};
}
LogBox.ignoreAllLogs();
// Note: Android video conference notifications are now handled natively
// in RCFirebaseMessagingService -> CustomPushNotification -> VideoConfNotification
AppRegistry.registerComponent(appName, () => require('./app/index').default);
}