about summary refs log tree commit diff
path: root/src/view/shell/index.tsx
diff options
context:
space:
mode:
authorAnsh <anshnanda10@gmail.com>2023-05-08 16:05:36 -0400
committerGitHub <noreply@github.com>2023-05-08 15:05:36 -0500
commit6124e5283628564b651463d7710f13096e9bd20c (patch)
tree60182abeb220f76e0a6a656d27f4c6ea824ecf94 /src/view/shell/index.tsx
parent249d166811a718781f6bc694de5c9061714b0db4 (diff)
downloadvoidsky-6124e5283628564b651463d7710f13096e9bd20c.tar.zst
add theme to SafeAreaView and preventAutoHide SplashScreen (#592)
Diffstat (limited to 'src/view/shell/index.tsx')
-rw-r--r--src/view/shell/index.tsx15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/view/shell/index.tsx b/src/view/shell/index.tsx
index 3c1520117..a6066b25f 100644
--- a/src/view/shell/index.tsx
+++ b/src/view/shell/index.tsx
@@ -17,6 +17,7 @@ import * as backHandler from 'lib/routes/back-handler'
 import {RoutesContainer, TabsNavigator} from '../../Navigation'
 import {isStateAtTabRoot} from 'lib/routes/helpers'
 import {isAndroid} from 'platform/detection'
+import {SafeAreaProvider} from 'react-native-safe-area-context'
 
 const ShellInner = observer(() => {
   const store = useStores()
@@ -78,12 +79,14 @@ export const Shell: React.FC = observer(() => {
   const pal = usePalette('default')
   const theme = useTheme()
   return (
-    <View testID="mobileShellView" style={[styles.outerContainer, pal.view]}>
-      <StatusBar style={theme.colorScheme === 'dark' ? 'light' : 'dark'} />
-      <RoutesContainer>
-        <ShellInner />
-      </RoutesContainer>
-    </View>
+    <SafeAreaProvider style={pal.view}>
+      <View testID="mobileShellView" style={[styles.outerContainer, pal.view]}>
+        <StatusBar style={theme.colorScheme === 'dark' ? 'light' : 'dark'} />
+        <RoutesContainer>
+          <ShellInner />
+        </RoutesContainer>
+      </View>
+    </SafeAreaProvider>
   )
 })