Skip to content

Commit

Permalink
fix(types): add cancelAllNotifications optional android tag property (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielFRico authored Sep 11, 2024
1 parent bbcb886 commit 134e00a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/react-native/src/types/Module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ export interface Module {
*
* This method does not cancel Android [Foreground Service](/react-native/docs/android/foreground-service)
* notifications.
* @param notificationIds An array of notifications IDs. This is automatically generated and returned
* when creating a notification, or has been set manually via the `id` property.
*
* @param tag The tag set when creating the notification. This is only relative to Android.
*/
cancelAllNotifications(notificationIds?: string[]): Promise<void>;
cancelAllNotifications(notificationIds?: string[], tag?: string): Promise<void>;

/**
* API used to cancel any displayed notifications.
Expand Down

0 comments on commit 134e00a

Please sign in to comment.