forked from standardnotes/mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
27 lines (22 loc) · 767 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
import 'react-native-gesture-handler';
import 'react-native-url-polyfill/auto';
import Bugsnag from '@bugsnag/react-native';
import { enableScreens } from 'react-native-screens';
import { SNLog } from '@standardnotes/snjs';
import { AppRegistry } from 'react-native';
import { App } from './src/App';
import { name as appName } from './app.json';
import { enableAndroidFontFix } from './src/style/android_text_fix';
enableScreens();
if (__DEV__ === false) {
console.log = () => {};
console.warn = () => {};
console.error = () => {};
SNLog.onError = Bugsnag.notify;
SNLog.onLog = Bugsnag.leaveBreadcrumb;
} else {
SNLog.onLog = console.log;
SNLog.onError = console.error;
}
enableAndroidFontFix();
AppRegistry.registerComponent(appName, () => App);