From dc55f580049d284c6e01271e3885c4fa23a8f458 Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Tue, 19 Jul 2022 15:37:24 -0500
Subject: Replace mobx-state-tree with mobx and get a basic home feed rendering

---
 src/App.native.tsx | 28 ++++++++++++++++++++++++++--
 1 file changed, 26 insertions(+), 2 deletions(-)

(limited to 'src/App.native.tsx')

diff --git a/src/App.native.tsx b/src/App.native.tsx
index 1326b184b..071b7457b 100644
--- a/src/App.native.tsx
+++ b/src/App.native.tsx
@@ -1,11 +1,35 @@
 import 'react-native-url-polyfill/auto'
 import React, {useState, useEffect} from 'react'
+import moment from 'moment'
 import {whenWebCrypto} from './platform/polyfills.native'
-import {RootStore, setupState, RootStoreProvider} from './state'
+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<RootStore | undefined>(undefined)
+  const [rootStore, setRootStore] = useState<RootStoreModel | undefined>(
+    undefined,
+  )
 
   // init
   useEffect(() => {
-- 
cgit 1.4.1

