upd: redesign
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import HeaderRightAnnouncementList from "@/components/announcement/headerAnnouncementList";
|
||||
import AppHeader from "@/components/AppHeader";
|
||||
import Styles from "@/constants/Styles";
|
||||
import HeaderDiscussionGeneral from "@/components/discussion_general/headerDiscussionGeneral";
|
||||
import HeaderRightDivisionList from "@/components/division/headerDivisionList";
|
||||
import HeaderRightGroupList from "@/components/group/headerGroupList";
|
||||
@@ -18,7 +19,7 @@ import { getMessaging, onMessage } from "@react-native-firebase/messaging";
|
||||
import { Redirect, router, Stack, usePathname } from "expo-router";
|
||||
import { StatusBar } from 'expo-status-bar';
|
||||
import { useEffect } from "react";
|
||||
import { Easing, Notifier } from 'react-native-notifier';
|
||||
import { Easing, Notifier, NotifierComponents } from 'react-native-notifier';
|
||||
import { Provider } from "react-redux";
|
||||
import { useTheme } from "@/providers/ThemeProvider";
|
||||
|
||||
@@ -67,12 +68,34 @@ export default function RootLayout() {
|
||||
} else if (pathname !== `/${category}/${content}`) {
|
||||
Notifier.showNotification({
|
||||
title: title,
|
||||
description: remoteMessage.notification?.body,
|
||||
description: String(remoteMessage.notification?.body),
|
||||
duration: 3000,
|
||||
animationDuration: 300,
|
||||
showEasing: Easing.ease,
|
||||
onPress: () => handleReadNotification(String(id), String(category), String(content), String(title)),
|
||||
hideOnPress: true,
|
||||
Component: NotifierComponents.Notification,
|
||||
componentProps: {
|
||||
containerStyle: [
|
||||
Styles.shadowBox,
|
||||
{
|
||||
backgroundColor: colors.modalBackground,
|
||||
borderRadius: 5,
|
||||
marginHorizontal: 15,
|
||||
marginTop: 10,
|
||||
padding: 15,
|
||||
}
|
||||
],
|
||||
titleStyle: {
|
||||
color: colors.text,
|
||||
fontWeight: 'bold',
|
||||
fontSize: 16,
|
||||
},
|
||||
descriptionStyle: {
|
||||
color: colors.dimmed,
|
||||
fontSize: 14,
|
||||
},
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user