: notifikasi in app

Deskripsi:
- package baru
- menampilkan notifikasi saat sedang membuka app

NoIssues
This commit is contained in:
amel
2025-06-19 11:04:32 +08:00
parent 56cc74ed19
commit 0abbf5068f
4 changed files with 27 additions and 13 deletions

View File

@@ -5,6 +5,8 @@ import * as SplashScreen from 'expo-splash-screen';
import { StatusBar } from 'expo-status-bar';
import { useEffect } from 'react';
import 'react-native-reanimated';
import { NotifierWrapper } from 'react-native-notifier';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
// Prevent the splash screen from auto-hiding before asset loading is complete.
SplashScreen.preventAutoHideAsync();
@@ -25,15 +27,17 @@ export default function RootLayout() {
}
return (
<>
<AuthProvider>
<Stack>
<Stack.Screen name="index" options={{ headerShown: false }} />
<Stack.Screen name="verification" options={{ headerShown: false }} />
<Stack.Screen name="(application)" options={{ headerShown: false }} />
</Stack>
<StatusBar style="auto" />
</AuthProvider>
</>
<GestureHandlerRootView style={{ flex: 1 }}>
<NotifierWrapper>
<AuthProvider>
<Stack>
<Stack.Screen name="index" options={{ headerShown: false }} />
<Stack.Screen name="verification" options={{ headerShown: false }} />
<Stack.Screen name="(application)" options={{ headerShown: false }} />
</Stack>
<StatusBar style="auto" />
</AuthProvider>
</NotifierWrapper>
</GestureHandlerRootView>
);
}