bug fixed complated
This commit is contained in:
@@ -7,33 +7,23 @@ import { ProfileDataProvider } from '@/screens/profile/lib/ProfileDataContext';
|
||||
import { Stack } from 'expo-router';
|
||||
import { StatusBar } from 'expo-status-bar';
|
||||
import { I18nextProvider } from 'react-i18next';
|
||||
import { View } from 'react-native';
|
||||
import 'react-native-reanimated';
|
||||
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
||||
import { SafeAreaView } from 'react-native-safe-area-context';
|
||||
import ToastManager from "toastify-react-native";
|
||||
|
||||
function AppContent() {
|
||||
useNotifications();
|
||||
const insets = useSafeAreaInsets();
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* iOS status bar fon */}
|
||||
<View
|
||||
style={{
|
||||
height: insets.top,
|
||||
backgroundColor: '#000',
|
||||
}}
|
||||
/>
|
||||
|
||||
{/* StatusBar */}
|
||||
<SafeAreaView style={{ flex: 1 }}>
|
||||
<StatusBar
|
||||
style="light"
|
||||
backgroundColor="#000" // Android
|
||||
style="dark"
|
||||
backgroundColor="#fff"
|
||||
translucent={false}
|
||||
/>
|
||||
|
||||
<Stack screenOptions={{ headerShown: false }} />
|
||||
</>
|
||||
</SafeAreaView>
|
||||
);
|
||||
}
|
||||
export default function RootLayout() {
|
||||
|
||||
Reference in New Issue
Block a user