Files
mobile/index.js
Vardan Hakobyan 32a5c0dcda chore: lint codebase according to @standardnotes/config (#594)
* refactor: extend TS configs from snjs and update codebase

* chore: run prettier

* chore: prettier

* chore: eslint

* chore: make file and folder names uppercase

* chore: make remaining file names pascal case

* fix: update custom paths in tsconfig

* fix: correct file name

* fix: set print width to 100
2022-04-20 19:06:35 +04:00

27 lines
790 B
JavaScript

import { SNLog } from '@standardnotes/snjs'
import { AppRegistry } from 'react-native'
import 'react-native-gesture-handler'
import { enableScreens } from 'react-native-screens'
import 'react-native-url-polyfill/auto'
import { name as appName } from './app.json'
import { App } from './src/App'
import { enableAndroidFontFix } from './src/Style/android_text_fix'
enableScreens()
/* eslint-disable no-console, @typescript-eslint/no-empty-function */
if (__DEV__ === false) {
console.log = () => {}
console.warn = () => {}
console.error = () => {}
SNLog.onError = console.error
SNLog.onLog = console.log
} else {
SNLog.onError = console.error
SNLog.onLog = console.log
}
/* eslint-enable no-console */
enableAndroidFontFix()
AppRegistry.registerComponent(appName, () => App)