upd: status bar

This commit is contained in:
amel
2025-06-25 15:06:10 +08:00
parent 720a8ce5fb
commit ffe53e46b1

View File

@@ -21,6 +21,7 @@ import { Provider } from "react-redux";
export default function RootLayout() { export default function RootLayout() {
useEffect(() => { useEffect(() => {
const unsubscribe = messaging().onMessage(async remoteMessage => { const unsubscribe = messaging().onMessage(async remoteMessage => {
console.log('pesan', remoteMessage.data)
Notifier.showNotification({ Notifier.showNotification({
title: remoteMessage.notification?.title, title: remoteMessage.notification?.title,
description: remoteMessage.notification?.body, description: remoteMessage.notification?.body,
@@ -109,7 +110,7 @@ export default function RootLayout() {
}} }}
/> />
</Stack> </Stack>
<StatusBar style="inverted" translucent={false} backgroundColor="black"/> <StatusBar style="light" translucent={false} backgroundColor="black"/>
</Provider> </Provider>
) )
} }