How to use the react-native-onesignal.cancelNotification function in react-native-onesignal

To help you get started, we’ve selected a few react-native-onesignal 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 flow-typed / flow-typed / definitions / npm / react-native-onesignal_v3.x.x / flow_v0.69.0-v0.103.x / test_react-native-onesignal.js View on Github external
it("must call cancelNotification with number", () => {
    OneSignal.cancelNotification(0);
    // $ExpectError
    OneSignal.cancelNotification("");
    // $ExpectError
    OneSignal.cancelNotification();
  });
github flow-typed / flow-typed / definitions / npm / react-native-onesignal_v3.x.x / flow_v0.69.0-v0.103.x / test_react-native-onesignal.js View on Github external
it("must call cancelNotification with number", () => {
    OneSignal.cancelNotification(0);
    // $ExpectError
    OneSignal.cancelNotification("");
    // $ExpectError
    OneSignal.cancelNotification();
  });
github flow-typed / flow-typed / definitions / npm / react-native-onesignal_v3.x.x / flow_v0.104.x- / test_react-native-onesignal.js View on Github external
it('must call cancelNotification with number', () => {
    OneSignal.cancelNotification(0);
    // $ExpectError
    OneSignal.cancelNotification('');
    // $ExpectError
    OneSignal.cancelNotification();
  });
github flow-typed / flow-typed / definitions / npm / react-native-onesignal_v3.x.x / flow_v0.69.0-v0.103.x / test_react-native-onesignal.js View on Github external
it("must call cancelNotification with number", () => {
    OneSignal.cancelNotification(0);
    // $ExpectError
    OneSignal.cancelNotification("");
    // $ExpectError
    OneSignal.cancelNotification();
  });
github flow-typed / flow-typed / definitions / npm / react-native-onesignal_v3.x.x / flow_v0.104.x- / test_react-native-onesignal.js View on Github external
it('must call cancelNotification with number', () => {
    OneSignal.cancelNotification(0);
    // $ExpectError
    OneSignal.cancelNotification('');
    // $ExpectError
    OneSignal.cancelNotification();
  });
github flow-typed / flow-typed / definitions / npm / react-native-onesignal_v3.x.x / flow_v0.104.x- / test_react-native-onesignal.js View on Github external
it('must call cancelNotification with number', () => {
    OneSignal.cancelNotification(0);
    // $ExpectError
    OneSignal.cancelNotification('');
    // $ExpectError
    OneSignal.cancelNotification();
  });
github hummingbird-me / kitsu-mobile / src / screens / Notifications / NotificationsScreen / index.js View on Github external
onReceived = (notification) => {
    console.log('Notification received: ', notification);

    // If we got a notification while user is in the app then dismiss it
    if (notification && notification.isAppInFocus && notification.androidNotificationId) {
      OneSignal.cancelNotification(notification.androidNotificationId);
    }

    this.updateNotificationCount();
  }