How to use the react-native-notifications.NotificationsAndroid.cancelAllNotifications function in react-native-notifications

To help you get started, we’ve selected a few react-native-notifications examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github demokratie-live / democracy-client / src / hocs / PushNotifications.js View on Github external
onClick: () => {
              navigator.handleDeepLink({
                link: `democracy.Detail`,
                payload: {
                  procedureId: `${procedureId}`,
                  from: 'pushNotification',
                },
              });
              if (Platform.OS === 'android') {
                NotificationsAndroid.cancelAllNotifications();
              }
            },
          }, // simple serializable object that will pass as props to the in-app notification (optional)

react-native-notifications

Advanced Push Notifications (Silent, interactive notifications) for iOS & Android

MIT
Latest version published 1 year ago

Package Health Score

65 / 100
Full package analysis