From e5feb9ffbea718287fc7021d59cc36ed8cd56055 Mon Sep 17 00:00:00 2001 From: Ran Greenberg Date: Wed, 12 Jul 2017 15:58:49 +0300 Subject: [PATCH] add isRegisteredForRemoteNotifications to JS API --- index.ios.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.ios.js b/index.ios.js index cce7a58..4503856 100644 --- a/index.ios.js +++ b/index.ios.js @@ -203,4 +203,8 @@ export default class NotificationsIOS { static cancelAllLocalNotifications() { NativeRNNotifications.cancelAllLocalNotifications(); } + + static async isRegisteredForRemoteNotifications() { + return await NativeRNNotifications.isRegisteredForRemoteNotifications(); + } } -- 2.26.2