about summary refs log tree commit diff
path: root/src/App.native.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.native.tsx')
-rw-r--r--src/App.native.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/App.native.tsx b/src/App.native.tsx
index 41b78fc98..50a80d9fe 100644
--- a/src/App.native.tsx
+++ b/src/App.native.tsx
@@ -17,7 +17,6 @@ import {ThemeProvider as Alf} from '#/alf'
 import {useColorModeTheme} from '#/alf/util/useColorModeTheme'
 import {init as initPersistedState} from '#/state/persisted'
 import {listenSessionDropped} from './state/events'
-import {useColorMode} from 'state/shell'
 import {ThemeProvider} from 'lib/ThemeContext'
 import {s} from 'lib/styles'
 import {Shell} from 'view/shell'
@@ -49,10 +48,9 @@ import {useLingui} from '@lingui/react'
 SplashScreen.preventAutoHideAsync()
 
 function InnerApp() {
-  const colorMode = useColorMode()
   const {isInitialLoad, currentAccount} = useSession()
   const {resumeSession} = useSessionApi()
-  const theme = useColorModeTheme(colorMode)
+  const theme = useColorModeTheme()
   const {_} = useLingui()
 
   // init
@@ -75,7 +73,7 @@ function InnerApp() {
             key={currentAccount?.did}>
             <LoggedOutViewProvider>
               <UnreadNotifsProvider>
-                <ThemeProvider theme={colorMode}>
+                <ThemeProvider theme={theme}>
                   {/* All components should be within this provider */}
                   <RootSiblingParent>
                     <GestureHandlerRootView style={s.h100pct}>