Files
mobile/index.js
Mo ce5e89ac1d feat/offline-editors (#517)
* feat: offline editors (#392)

* feat: add react-native-zip-archive dependency

* feat: download and extract offline editors

* feat: use offline editor path as webview source

* fix: change function name

* fix: move deactivate editor to compose unmount

* fix: add origin whitelist

* fix: add read access url

* fix: increase load end timeout to remove theme load flicker

* fix: set online url on getOfflineEditor error

* fix: set editor width and scale

* fix: add timeout to remove download message flicker

* fix: deactivate component when switching editors

* fix: use online url if process is terminated

* fix: check if component mounted before state update

* fix: decrease loading editor message timeout

* feat: remove editor loading message on ThemesActivated action (#415)

* chore(version-snjs): 2.0.76

* feat: remove loading editor message on ActivateThemes action

* fix: offline editors issues (#416)

* fix: read main from package.json

* fix: reload editor when switching after editor load failure

* fix: check offlineOnly before setting online url

* fix: prevent editor download if another download is in progress

* fix: live item deinit called more than once (#423)

* feat: check for and download editor updates

* fix: access denied webview errors on Android 10

* feat: serve offline editors from local static server (#472)

* feat: serve offline editors from local static server

* fix: use document directory for both OS

* fix: download error handling

* refactor: use forked repo for react-native-static-server

* chore: add logs and temporarily enable them for dev

* feat(wip): integrity verification

* refactor: component manager handling downloads

* feat(wip): functional component viewer

* feat: handle local themes

* chore: disable logging

* improve: use existing function

* fix: root url first load

* fix: types

* chore: cleanup
2021-12-30 15:25:39 -06:00

27 lines
709 B
JavaScript

import 'react-native-gesture-handler';
import 'react-native-url-polyfill/auto';
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 = console.error;
SNLog.onLog = console.log;
} else {
SNLog.onError = console.error;
SNLog.onLog = console.log;
}
enableAndroidFontFix();
AppRegistry.registerComponent(appName, () => App);