File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -627,6 +627,28 @@ export default class JPush {
627627 JPushModule . sendLocalNotification ( notification )
628628 }
629629
630+ /**
631+ * 移除所有的本地通知
632+ */
633+ static clearLocalNotifications ( ) {
634+ if ( Platform . OS == "android" ) {
635+ JPushModule . clearLocalNotifications ( )
636+ } else {
637+
638+ }
639+ }
640+
641+ /**
642+ * 移除指定的本地通知
643+ */
644+ static removeLocalNotification ( id ) {
645+ if ( Platform . OS == "android" ) {
646+ JPushModule . removeLocalNotification ( id )
647+ } else {
648+
649+ }
650+ }
651+
630652 /**
631653 * iOS Only
632654 * 设置应用 Badge(小红点)
Original file line number Diff line number Diff line change 11{
22 "name" : " jpush-react-native" ,
3- "version" : " 2.2.11 " ,
3+ "version" : " 2.2.12 " ,
44 "description" : " a jpush plugin for react native application" ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments