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

@types/react-native-push-notification

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-native-push-notification - npm Package Compare versions

Comparing version 7.3.0 to 7.3.1

118

react-native-push-notification/index.d.ts

@@ -11,5 +11,5 @@ // Type definitions for react-native-push-notification 7.3

export interface PushNotificationPermissions {
alert?: boolean;
badge?: boolean;
sound?: boolean;
alert?: boolean | undefined;
badge?: boolean | undefined;
sound?: boolean | undefined;
}

@@ -23,3 +23,3 @@

userInfo: Record<string, any>;
subText?: string;
subText?: string | undefined;
badge: number;

@@ -29,3 +29,3 @@ alert: object;

id: number;
action?: string;
action?: string | undefined;
finish: (fetchResult: string) => void;

@@ -35,10 +35,10 @@ }

export interface PushNotificationOptions {
onRegister?: (token: { os: string; token: string }) => void;
onNotification?: (notification: Omit<ReceivedNotification, "userInfo">) => void;
onAction?: (notification: ReceivedNotification) => void;
onRegistrationError?: (error: any) => void;
onRemoteFetch?: (notificationData: any) => void;
permissions?: PushNotificationPermissions;
popInitialNotification?: boolean;
requestPermissions?: boolean;
onRegister?: ((token: { os: string; token: string }) => void) | undefined;
onNotification?: ((notification: Omit<ReceivedNotification, "userInfo">) => void) | undefined;
onAction?: ((notification: ReceivedNotification) => void) | undefined;
onRegistrationError?: ((error: any) => void) | undefined;
onRemoteFetch?: ((notificationData: any) => void) | undefined;
permissions?: PushNotificationPermissions | undefined;
popInitialNotification?: boolean | undefined;
requestPermissions?: boolean | undefined;
}

@@ -48,36 +48,36 @@

/* Android only properties */
ticker?: string;
showWhen?: boolean;
autoCancel?: boolean;
largeIcon?: string;
largeIconUrl?: string;
smallIcon?: string;
bigText?: string;
subText?: string;
bigPictureUrl?: string;
bigLargeIcon?: string;
bigLargeIconUrl?: string;
color?: string;
vibrate?: boolean;
vibration?: number;
tag?: string;
group?: string;
groupSummary?: boolean;
ongoing?: boolean;
priority?: "max" | "high" | "low" | "min" | "default";
visibility?: "private" | "public" | "secret";
importance?: "default" | "max" | "high" | "low" | "min" | "none" | "unspecified";
ignoreInForeground?: boolean;
shortcutId?: string;
channelId?: string;
onlyAlertOnce?: boolean;
allowWhileIdle?: boolean;
timeoutAfter?: number | null;
messageId?: string;
ticker?: string | undefined;
showWhen?: boolean | undefined;
autoCancel?: boolean | undefined;
largeIcon?: string | undefined;
largeIconUrl?: string | undefined;
smallIcon?: string | undefined;
bigText?: string | undefined;
subText?: string | undefined;
bigPictureUrl?: string | undefined;
bigLargeIcon?: string | undefined;
bigLargeIconUrl?: string | undefined;
color?: string | undefined;
vibrate?: boolean | undefined;
vibration?: number | undefined;
tag?: string | undefined;
group?: string | undefined;
groupSummary?: boolean | undefined;
ongoing?: boolean | undefined;
priority?: "max" | "high" | "low" | "min" | "default" | undefined;
visibility?: "private" | "public" | "secret" | undefined;
importance?: "default" | "max" | "high" | "low" | "min" | "none" | "unspecified" | undefined;
ignoreInForeground?: boolean | undefined;
shortcutId?: string | undefined;
channelId?: string | undefined;
onlyAlertOnce?: boolean | undefined;
allowWhileIdle?: boolean | undefined;
timeoutAfter?: number | null | undefined;
messageId?: string | undefined;
when?: number | null;
usesChronometer?: boolean;
when?: number | null | undefined;
usesChronometer?: boolean | undefined;
actions?: string[];
invokeApp?: boolean;
actions?: string[] | undefined;
invokeApp?: boolean | undefined;

@@ -88,11 +88,11 @@ /* iOS only properties */

/* iOS and Android properties */
id?: number;
title?: string;
id?: number | undefined;
title?: string | undefined;
message: string;
userInfo?: any;
playSound?: boolean;
soundName?: string;
number?: string | number;
repeatType?: "week" | "day" | "hour" | "minute" | "time";
repeatTime?: number;
playSound?: boolean | undefined;
soundName?: string | undefined;
number?: string | number | undefined;
repeatType?: "week" | "day" | "hour" | "minute" | "time" | undefined;
repeatTime?: number | undefined;
}

@@ -102,3 +102,3 @@

date: Date;
allowWhileIdle?: boolean;
allowWhileIdle?: boolean | undefined;
}

@@ -112,3 +112,3 @@

group: string;
category?: string;
category?: string | undefined;
userInfo?: any;

@@ -140,7 +140,7 @@ }

channelName: string;
channelDescription?: string;
soundName?: string;
importance?: Importance;
vibrate?: boolean;
playSound?: boolean;
channelDescription?: string | undefined;
soundName?: string | undefined;
importance?: Importance | undefined;
vibrate?: boolean | undefined;
playSound?: boolean | undefined;
}

@@ -147,0 +147,0 @@

{
"name": "@types/react-native-push-notification",
"version": "7.3.0",
"version": "7.3.1",
"description": "TypeScript definitions for react-native-push-notification",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-push-notification",
"license": "MIT",

@@ -37,4 +38,4 @@ "contributors": [

"dependencies": {},
"typesPublisherContentHash": "2697a9ce5e85346c5bb474dad1a19293e61af18fad99bad3f68986a88dc4f561",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "9ea10272e573eb8f174d6443d9a497d3002bdef5528029df183eae10116c9264",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 14 May 2021 17:31:29 GMT
* Last updated: Wed, 07 Jul 2021 17:33:50 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

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