mirror of
https://github.com/standardnotes/mobile.git
synced 2026-01-16 11:48:06 -05:00
27 lines
726 B
JavaScript
27 lines
726 B
JavaScript
import 'react-native-gesture-handler';
|
|
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);
|