import React, { useEffect } from 'react'; import { StyleSheet, StatusBar } from 'react-native'; import { SafeAreaProvider } from 'react-native-safe-area-context'; import { RootNavigator } from './navigation/rootNavigator'; import { ThemeProvider, useTheme } from './theme'; import { Provider } from 'react-redux'; import { store, persistor } from '@store'; import { PersistGate } from 'redux-persist/integration/react'; 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;