add isRegisteredForRemoteNotifications to JS API

This commit is contained in:
Ran Greenberg
2017-07-12 15:58:49 +03:00
parent baac919188
commit e5feb9ffbe

View File

@@ -203,4 +203,8 @@ export default class NotificationsIOS {
static cancelAllLocalNotifications() {
NativeRNNotifications.cancelAllLocalNotifications();
}
static async isRegisteredForRemoteNotifications() {
return await NativeRNNotifications.isRegisteredForRemoteNotifications();
}
}