mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add subscribeToTopic to react-native-push-notification (#42563)
This commit is contained in:
parent
8e4b60f9f1
commit
f52feeb51c
@ -84,6 +84,7 @@ export interface PushNotification {
|
||||
requestPermissions(
|
||||
permissions?: Array<"alert" | "badge" | "sound">
|
||||
): Promise<PushNotificationPermissions>;
|
||||
subscribeToTopic(topic: string): void;
|
||||
presentLocalNotification(details: PushNotificationObject): void;
|
||||
scheduleLocalNotification(details: PushNotificationScheduleObject): void;
|
||||
cancelLocalNotifications(details: object): void;
|
||||
|
||||
@ -15,6 +15,7 @@ PushNotification.unregister();
|
||||
PushNotification.localNotification = (details) => {};
|
||||
PushNotification.localNotificationSchedule = (details) => {};
|
||||
PushNotification.requestPermissions();
|
||||
PushNotification.subscribeToTopic("topic");
|
||||
PushNotification.presentLocalNotification = (details) => {};
|
||||
PushNotification.scheduleLocalNotification = (details) => {};
|
||||
PushNotification.cancelLocalNotifications = (details) => {};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user