Skip to content

Commit c7d0454

Browse files
committed
(fix): status bar correct as theme
1 parent 0299ea2 commit c7d0454

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/polycentric/app/_layout.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import '@/src/common/util/react-native-screens-feature-flags';
66
import { TrueSheetProvider } from '@lodev09/react-native-true-sheet';
77
import { Stack } from 'expo-router';
88
import * as SplashScreen from 'expo-splash-screen';
9+
import { StatusBar } from 'expo-status-bar';
910
import { useCallback, useEffect, useState } from 'react';
1011
import { GestureHandlerRootView } from 'react-native-gesture-handler';
1112
import {
@@ -25,6 +26,8 @@ function RootStack() {
2526
const { theme } = useTheme();
2627

2728
const stack = (
29+
<>
30+
<StatusBar style={theme.name === 'dark' ? 'light' : 'dark'} />
2831
<Stack
2932
screenOptions={{
3033
headerShown: false,
@@ -60,6 +63,7 @@ function RootStack() {
6063
}}
6164
/>
6265
</Stack>
66+
</>
6367
);
6468

6569
return stack;

0 commit comments

Comments
 (0)