We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b7bc67 commit dfe5bfbCopy full SHA for dfe5bfb
src/components/ui/focus-aware-status-bar.tsx
@@ -1,12 +1,15 @@
1
import { useIsFocused } from '@react-navigation/native';
2
import { useColorScheme } from 'nativewind';
3
import * as React from 'react';
4
+import { Platform } from 'react-native';
5
import { SystemBars } from 'react-native-edge-to-edge';
6
7
type Props = { hidden?: boolean };
8
export const FocusAwareStatusBar = ({ hidden = false }: Props) => {
9
const isFocused = useIsFocused();
10
const { colorScheme } = useColorScheme();
11
12
+ if (Platform.OS === 'web') return null;
13
+
14
return isFocused ? <SystemBars style={colorScheme} hidden={hidden} /> : null;
15
};
0 commit comments