upd: status bar
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user