mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Add support for cancelAllLocalNotifications
Summary: Closes https://github.com/facebook/react-native/pull/2980 Reviewed By: svcscm Differential Revision: D2550080 Pulled By: javache fb-gh-sync-id: 76a7088f4f86191b02e6c176e4a8a7bc85f90835
This commit is contained in:
committed by
facebook-github-bot-7
parent
2608efccb6
commit
da250671e5
@@ -82,6 +82,13 @@ class PushNotificationIOS {
|
||||
RCTPushNotificationManager.scheduleLocalNotification(details);
|
||||
}
|
||||
|
||||
/**
|
||||
* Cancels all scheduled localNotifications
|
||||
*/
|
||||
static cancelAllLocalNotifications() {
|
||||
RCTPushNotificationManager.cancelAllLocalNotifications();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the badge number for the app icon on the home screen
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user