@@ -219,7 +219,7 @@ public class MainApplication extends Application implements ReactApplication {
219
219
220
220
``` javascript
221
221
import PushNotificationIOS from " @react-native-community/push-notification-ios" ;
222
- var PushNotification = require ( " react-native-push-notification" ) ;
222
+ import PushNotification from " react-native-push-notification" ;
223
223
224
224
// Must be outside of any component LifeCycle (such as `componentDidMount`).
225
225
PushNotification .configure ({
@@ -502,15 +502,15 @@ _NOTE: there is currently no api for removing specific notification alerts from
502
502
### 3) removeAllDeliveredNotifications
503
503
504
504
``` javascript
505
- PushNotificationIOS .removeAllDeliveredNotifications ();
505
+ PushNotification .removeAllDeliveredNotifications ();
506
506
```
507
507
508
508
Remove all delivered notifications from Notification Center
509
509
510
510
### 4) getDeliveredNotifications
511
511
512
512
``` javascript
513
- PushNotificationIOS .getDeliveredNotifications (callback);
513
+ PushNotification .getDeliveredNotifications (callback);
514
514
```
515
515
516
516
Provides you with a list of the app’s notifications that are still displayed in Notification Center
@@ -533,7 +533,7 @@ A delivered notification is an object containing:
533
533
### 5) removeDeliveredNotifications
534
534
535
535
``` javascript
536
- PushNotificationIOS .removeDeliveredNotifications (identifiers);
536
+ PushNotification .removeDeliveredNotifications (identifiers);
537
537
```
538
538
539
539
Removes the specified notifications from Notification Center
@@ -547,7 +547,7 @@ Removes the specified notifications from Notification Center
547
547
### 6) getScheduledLocalNotifications
548
548
549
549
``` javascript
550
- PushNotificationIOS .getScheduledLocalNotifications (callback);
550
+ PushNotification .getScheduledLocalNotifications (callback);
551
551
```
552
552
553
553
Provides you with a list of the app’s scheduled local notifications that are yet to be displayed
0 commit comments