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];