useNovu
Learn how to use the useNovu hook to access the Novu client instance in your React Native application
The useNovu
hook provides access to the Novu client instance from anywhere in your React Native application. This hook must be used within a component that is wrapped by the NovuProvider
.
Return Value
Example Usage
Here's how to use the useNovu
hook to interact with the Novu client:
Accessing Notification Methods
The Novu client provides methods for managing notifications:
Updating single workflow's channel preferences
Workflow's channel preferences can be updated using novu.preferences.update
method.
Updating multiple workflow's channel preferences
Using novu.preferences.bulkUpdate
method multiple workflow's channel preferences can be updated at once.
Listening for new notifications
The Novu client instance provides access to all the functionality available in the Headless API.