bug fixed complated

This commit is contained in:
Samandar Turgunboyev
2026-03-02 15:14:52 +05:00
parent ab363ca3b9
commit 4d5cc84850
6 changed files with 23 additions and 27 deletions

View File

@@ -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() {