Add: - components/Notification/ - hooks/use-notification-store.tsx.back Fix: - app.config.js - app/(application)/(user)/_layout.tsx - app/(application)/(user)/home.tsx - app/(application)/(user)/test-notifications.tsx - app/(application)/_layout.tsx - app/_layout.tsx - components/_Icon/IconComponent.tsx - components/_Icon/IconPlus.tsx - components/_ShareComponent/NotificationInitializer.tsx - context/AuthContext.tsx - hooks/use-notification-store.tsx - ios/HIPMIBadungConnect/Info.plist - screens/Home/HeaderBell.tsx - service/api-device-token.ts - service/api-notifications.ts ### No Issue
46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
import { BackButton } from "@/components";
|
|
import NotificationInitializer from "@/components/Notification/NotificationInitializer";
|
|
import { NotificationProvider } from "@/hooks/use-notification-store";
|
|
import { HeaderStyles } from "@/styles/header-styles";
|
|
import { Stack } from "expo-router";
|
|
|
|
export default function ApplicationLayout() {
|
|
return (
|
|
<>
|
|
<NotificationProvider>
|
|
<NotificationInitializer />
|
|
<ApplicationStack />
|
|
</NotificationProvider>
|
|
</>
|
|
);
|
|
}
|
|
|
|
function ApplicationStack() {
|
|
return (
|
|
<>
|
|
<Stack screenOptions={HeaderStyles}>
|
|
<Stack.Screen name="(user)" options={{ headerShown: false }} />
|
|
<Stack.Screen name="admin" options={{ headerShown: false }} />
|
|
|
|
{/* Take Picture */}
|
|
<Stack.Screen
|
|
name="(image)/take-picture/[id]/index"
|
|
options={{
|
|
title: "Ambil Gambar",
|
|
headerLeft: () => <BackButton />,
|
|
}}
|
|
/>
|
|
|
|
{/* Preview Image */}
|
|
<Stack.Screen
|
|
name="(image)/preview-image/[id]/index"
|
|
options={{
|
|
title: "Preview Gambar",
|
|
headerLeft: () => <BackButton />,
|
|
}}
|
|
/>
|
|
</Stack>
|
|
</>
|
|
);
|
|
}
|