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