You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to pass some sort of variable in the data object with other properties like image, detailPage, etc, which allows me to specify which notifications have been read or not? Something like this:
const DEFAULT_NOTIFICATION = [
{
image: require("../../images/user.png"),
message: "New message.",
detailPage: "/",
receivedTime: "1 min ago",
markAsRead: false
}
];
Also how do I run this project?
Please do get back to me.
Thank you.
The text was updated successfully, but these errors were encountered:
markAsRead can not be used because this name implies the action.
hasRead is a better name and it can be added in the notification data to specify whether the notification has been read or not.
constDEFAULT_NOTIFICATION=[{image: require("../../images/user.png"),message: "New message.",detailPage: "/",receivedTime: "1 min ago",hasRead: false}];
Hi.
Is there any way to pass some sort of variable in the data object with other properties like image, detailPage, etc, which allows me to specify which notifications have been read or not? Something like this:
const DEFAULT_NOTIFICATION = [
{
image: require("../../images/user.png"),
message: "New message.",
detailPage: "/",
receivedTime: "1 min ago",
markAsRead: false
}
];
Also how do I run this project?
Please do get back to me.
Thank you.
The text was updated successfully, but these errors were encountered: