upd: bug bg saat pindah page

This commit is contained in:
2026-02-19 15:45:08 +08:00
parent 6770d40b41
commit 86b9fa6396
2 changed files with 21 additions and 9 deletions

View File

@@ -20,10 +20,12 @@ import { StatusBar } from 'expo-status-bar';
import { useEffect } from "react";
import { Easing, Notifier } from 'react-native-notifier';
import { Provider } from "react-redux";
import { useTheme } from "@/providers/ThemeProvider";
export default function RootLayout() {
const { token, decryptToken, isLoading } = useAuthSession()
const pathname = usePathname()
const { colors } = useTheme()
async function handleReadNotification(id: string, category: string, idContent: string, title: string) {
try {
@@ -93,11 +95,10 @@ export default function RootLayout() {
<Stack screenOptions={{
headerShown: true,
animation: "slide_from_right",
// ⬇️ PENTING BANGET
animationTypeForReplace: "pop",
fullScreenGestureEnabled: true,
gestureEnabled: true,
contentStyle: { backgroundColor: colors.header },
}} >
<Stack.Screen name="home" options={{ title: 'Home' }} />
<Stack.Screen name="feature" options={{ title: 'Fitur' }} />