@notifee/react-native / Notification
Interface: Notification
Interface for building a local notification for both Android & iOS devices.
To learn more about displaying a notification, view the Displaying a Notification documentation.
android?
optional
android:NotificationAndroid
Android specific notification options. See the NotificationAndroid
interface for more information and default options which are applied to a notification.
data?
optional
data:object
Additional data to store on the notification.
Data can be used to provide additional context to your notification which can be retrieved at a later point in time (e.g. via an event).
id?
optional
id:string
A unique identifier for your notification.
Notifications with the same ID will be created as the same instance, allowing you to update a notification which already exists on the device.
Defaults to a random string if not provided.
ios?
optional
ios:NotificationIOS
iOS specific notification options. See the NotificationIOS
interface for more information and default options which are applied to a notification.