From 15ef12d5db3bddf7678373b6b8f7aab85513fc79 Mon Sep 17 00:00:00 2001 From: Erik Rothoff Andersson Date: Fri, 29 Jan 2021 18:05:21 +0100 Subject: [PATCH] Expose the multicast property of RNNotifications so it can be used for tweaks --- lib/ios/RNNotifications.h | 3 +++ lib/ios/RNNotifications.m | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/lib/ios/RNNotifications.h b/lib/ios/RNNotifications.h index 33491fc17..416786f26 100644 --- a/lib/ios/RNNotifications.h +++ b/lib/ios/RNNotifications.h @@ -1,6 +1,7 @@ #import #import #import +#import "RNNotificationCenterMulticast.h" @interface RNNotifications : NSObject @@ -17,4 +18,6 @@ + (void)addNativeDelegate:(id)delegate; + (void)removeNativeDelegate:(id)delegate; +- (RNNotificationCenterMulticast*)multicast; + @end diff --git a/lib/ios/RNNotifications.m b/lib/ios/RNNotifications.m index 333824a3a..205808da6 100644 --- a/lib/ios/RNNotifications.m +++ b/lib/ios/RNNotifications.m @@ -61,6 +61,10 @@ + (void)removeNativeDelegate:(id)delegate { [[self sharedInstance] removeNativeDelegate:delegate]; } +- (RNNotificationCenterMulticast*)multicast { + return _notificationCenterMulticast; +} + - (void)startMonitorNotifications { _notificationCenterListener = [[RNNotificationCenterListener alloc] initWithNotificationEventHandler:_notificationEventHandler];