mirror of
https://github.com/zhigang1992/react-native-notifications.git
synced 2026-06-12 17:18:11 +08:00
add isRegisteredForRemoteNotifications to JS API
This commit is contained in:
@@ -203,4 +203,8 @@ export default class NotificationsIOS {
|
||||
static cancelAllLocalNotifications() {
|
||||
NativeRNNotifications.cancelAllLocalNotifications();
|
||||
}
|
||||
|
||||
static async isRegisteredForRemoteNotifications() {
|
||||
return await NativeRNNotifications.isRegisteredForRemoteNotifications();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user