mirror of
https://github.com/standardnotes/mobile.git
synced 2026-01-04 05:48:05 -05:00
* 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
27 lines
790 B
JavaScript
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)
|