Add: - service/api-device-token.ts Fix: - app/(application)/(user)/home.tsx - app/(application)/(user)/test-notifications.tsx - app/_layout.tsx - components/_ShareComponent/NotificationInitializer.tsx - context/AuthContext.tsx - hooks/use-foreground-notifications.ts - screens/Home/HeaderBell.tsx - service/api-notifications.ts ### No Issue
26 lines
745 B
TypeScript
26 lines
745 B
TypeScript
import NotificationInitializer from "@/components/_ShareComponent/NotificationInitializer";
|
|
import { AuthProvider } from "@/context/AuthContext";
|
|
import {
|
|
NotificationProvider
|
|
} from "@/hooks/use-notification-store";
|
|
import AppRoot from "@/screens/RootLayout/AppRoot";
|
|
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>
|
|
</>
|
|
);
|
|
}
|