Я хочу открыть определенную страницу, если щелкнуть уведомление. Как это сделать в React Native?
this.notificationListener = firebase.notifications().onNotification((notification: Notification) => {
this.notificationDisplayedListener = firebase.notifications().onNotificationDisplayed((notification: Notification) => {
// Process your notification as required
// ANDROID: Remote notifications do not contain the channel ID.
// You will have to specify this manually if you'd like to re-display the notification.
const { title, body } = notification; }
);
const { title, body } = notification;
});