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