How can show accept reject button in push notification in react native
I want accept reject button in my notifications in react native. So if notification relates that if they want to accept they can click on accept or they want to reject they can reject.
Please help me out for the same.Notification will work in foreground and background. Currently, I am getting the notification on both background and foreground.
For now I am opening a modal and that's working fine for me.
In background when I received the notification and on function onNotificationOpenedApp in callback I am dispatching the data and opening a modal based on the data.
Same in foreground, when I am receiving notification in calllback I open a modal by using dispatch and state management.