Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-onesignal

Package Overview
Dependencies
Maintainers
7
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-onesignal - npm Package Compare versions

Comparing version 4.0.0-beta.4 to 4.0.0-beta.5

2

package.json
{
"name": "react-native-onesignal",
"version": "4.0.0-beta.4",
"version": "4.0.0-beta.5",
"description": "React Native OneSignal SDK",

@@ -5,0 +5,0 @@ "main": "src/index",

@@ -76,3 +76,3 @@ declare module 'react-native-onesignal' {

export interface NotificationReceivedEvent {
complete : (notification: OSNotification) => void;
complete : (notification?: OSNotification) => void;
getNotification : () => OSNotification;

@@ -79,0 +79,0 @@ };

@@ -227,9 +227,9 @@ 'use strict';

static cancelNotification(id) {
static removeNotification(id) {
if (!checkIfInitialized(RNOneSignal)) return;
if (Platform.OS === 'android') {
RNOneSignal.cancelNotification(id);
RNOneSignal.removeNotification(id);
} else {
console.log("cancelNotification: this function is not supported on iOS");
console.log("removeNotification: this function is not supported on iOS");
}

@@ -236,0 +236,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc