From a90fd5d26f1a8aa5149627a68a8dd6b13b26fec5 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Fri, 30 Dec 2022 15:48:34 -0600 Subject: Add dark mode toggle --- src/App.native.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/App.native.tsx') diff --git a/src/App.native.tsx b/src/App.native.tsx index fa523cd81..3cce25548 100644 --- a/src/App.native.tsx +++ b/src/App.native.tsx @@ -5,12 +5,13 @@ import {RootSiblingParent} from 'react-native-root-siblings' import {GestureHandlerRootView} from 'react-native-gesture-handler' import SplashScreen from 'react-native-splash-screen' import {SafeAreaProvider} from 'react-native-safe-area-context' +import {observer} from 'mobx-react-lite' import {ThemeProvider} from './view/lib/ThemeContext' import * as view from './view/index' import {RootStoreModel, setupState, RootStoreProvider} from './state' import {MobileShell} from './view/shell/mobile' -function App() { +const App = observer(() => { const [rootStore, setRootStore] = useState( undefined, ) @@ -41,7 +42,7 @@ function App() { - + @@ -50,6 +51,6 @@ function App() { ) -} +}) export default App -- cgit 1.4.1