Files
hipmi-mobile/app/_layout.tsx
bagasbanuna d27c01ed56 Percobaan notifikasi
Add:
- app/(application)/(user)/test-notifications.tsx
- components/_ShareComponent/NotificationInitializer.tsx
- screens/Home/HeaderBell.tsx
- service/api-notifications.ts

Fix:
- app/(application)/(user)/home.tsx
- app/_layout.tsx
- screens/Authentication/LoginView.tsx

### No Issue
2025-12-15 17:46:05 +08:00

32 lines
977 B
TypeScript

import NotificationInitializer from "@/components/_ShareComponent/NotificationInitializer";
import { AuthProvider } from "@/context/AuthContext";
import { useForegroundNotifications } from "@/hooks/use-foreground-notifications";
import {
NotificationProvider,
useNotificationStore,
} from "@/hooks/use-notification-store";
import AppRoot from "@/screens/RootLayout/AppRoot";
import messaging, {
FirebaseMessagingTypes,
} from "@react-native-firebase/messaging";
import { useEffect } from "react";
import "react-native-gesture-handler";
import { SafeAreaProvider } from "react-native-safe-area-context";
import Toast from "react-native-toast-message";
export default function RootLayout() {
return (
<>
<NotificationProvider>
<SafeAreaProvider>
<AuthProvider>
<NotificationInitializer />
<AppRoot />
</AuthProvider>
</SafeAreaProvider>
<Toast />
</NotificationProvider>
</>
);
}