Me gustaría captar los eventos de notificación, pero el oyente useLastNotificationResponse devuelve "Llamada de gancho no válida".
Así es como lo uso:
created() { const lastNotificationResponse = Notifications.useLastNotificationResponse(); if (lastNotificationResponse && lastNotificationResponse.notification) { this._handleNotification(lastNotificationResponse.notification); } Notifications.addNotificationReceivedListener(this._handleNotification); Notifications.addNotificationResponseReceivedListener((response) => { this._handleNotification(response.notification); }); }Versión SDK: 40
¡Gracias por adelantado!