Skip to main content

The useNotifications hook provides a way to fetch and manage notifications in your React Native application. It includes support for pagination, and filtering.

Hook Parameters#

ParameterTypeRequiredDescription
storeIdstringNoFilter notifications by a specific store ID
queryobjectNoAdditional query parameters for filtering

Return Value#

Example Usage#

Here’s how to use the useNotifications hook to fetch and display notifications:

With Pull to Refresh#

You can implement pull-to-refresh using the refetch function:

With Filters#

You can apply filters using the query parameter: