diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-07-19 16:04:45 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-07-19 16:04:45 -0500 |
commit | e78143b3dc7ae52e0680799e190a3df3ed54aac3 (patch) | |
tree | e27a219f141a32db013a42520499e435aee4ca1e /src/App.native.tsx | |
parent | dc55f580049d284c6e01271e3885c4fa23a8f458 (diff) | |
download | voidsky-e78143b3dc7ae52e0680799e190a3df3ed54aac3.tar.zst |
Add icons
Diffstat (limited to 'src/App.native.tsx')
-rw-r--r-- | src/App.native.tsx | 30 |
1 files changed, 7 insertions, 23 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx index 071b7457b..ffeb7d5fc 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -1,31 +1,10 @@ import 'react-native-url-polyfill/auto' import React, {useState, useEffect} from 'react' -import moment from 'moment' import {whenWebCrypto} from './platform/polyfills.native' +import * as view from './view/index' import {RootStoreModel, setupState, RootStoreProvider} from './state' import * as Routes from './view/routes' -moment.updateLocale('en', { - relativeTime: { - future: 'in %s', - past: '%s ago', - s: 'a few seconds', - ss: '%ds', - m: 'a minute', - mm: '%dm', - h: 'an hour', - hh: '%dh', - d: 'a day', - dd: '%dd', - w: 'a week', - ww: '%dw', - M: 'a month', - MM: '%dmo', - y: 'a year', - yy: '%dy', - }, -}) - function App() { const [rootStore, setRootStore] = useState<RootStoreModel | undefined>( undefined, @@ -33,7 +12,12 @@ function App() { // init useEffect(() => { - whenWebCrypto.then(() => setupState()).then(setRootStore) + whenWebCrypto + .then(() => { + view.setup() + return setupState() + }) + .then(setRootStore) }, []) // show nothing prior to init |