import React, { useEffect } from 'react'; import { StyleSheet, StatusBar } from 'react-native'; import { SafeAreaProvider } from 'react-native-safe-area-context'; import { GestureHandlerRootView } from 'react-native-gesture-handler'; import { RootNavigator } from './navigation/rootNavigator'; import { ThemeProvider, useTheme } from './theme'; const ThemedStatusBar = () => { const { theme: colors, isDark } = useTheme(); useEffect(() => { StatusBar.setBarStyle(isDark ? 'light-content' : 'dark-content', true); StatusBar.setBackgroundColor(colors.background, true); }, [colors, isDark]); return ( ); }; const App = () => { return ( ); }; export default App; const styles = StyleSheet.create({ root: { flex: 1 }, });