We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi!
I would like to catch the notification events, but useLastNotificationResponse listener returns "Invalid hook call".
That's how i use it:
created() { const lastNotificationResponse = Notifications.useLastNotificationResponse(); if (lastNotificationResponse && lastNotificationResponse.notification) { this._handleNotification(lastNotificationResponse.notification); } Notifications.addNotificationReceivedListener(this._handleNotification); Notifications.addNotificationResponseReceivedListener((response) => { this._handleNotification(response.notification); }); }
SDK version: 40
Thanks in advance!
The text was updated successfully, but these errors were encountered:
I have a same problem. IS there an issue with this code?
Sorry, something went wrong.
No branches or pull requests
Hi!
I would like to catch the notification events, but useLastNotificationResponse listener returns "Invalid hook call".
That's how i use it:
SDK version: 40
Thanks in advance!
The text was updated successfully, but these errors were encountered: