We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent accd300 commit 99feae8Copy full SHA for 99feae8
index.d.ts
@@ -0,0 +1,13 @@
1
+declare module 'react-native-voip-push-notification' {
2
+ export type Events =
3
+ 'notification' |
4
+ 'register'|
5
+ 'didLoadWithEvents';
6
+
7
+ export default class RNVoipPushNotification {
8
+ static addEventListener(type: Events, handler: (args: any) => void): void
9
+ static registerVoipToken(): void;
10
+ static onVoipNotificationCompleted(uuid: string): void;
11
+ static removeEventListener(type: Events): void
12
+ }
13
+}
package.json
@@ -3,6 +3,7 @@
"version": "3.1.0",
"description": "VoIP push notification on react-native",
"main": "index.js",
+ "typings": "./index.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
0 commit comments