RNEventEmitter.h 794 Bytes
Newer Older
yogevbd's avatar
WIP  
yogevbd committed
1 2
#import "RCTEventEmitter.h"

yogevbd's avatar
WIP  
yogevbd committed
3 4 5 6 7 8 9 10
static NSString* const RNRegistered                = @"RNNotificationsRegistered";
static NSString* const RNRegistrationFailed            = @"RNNotificationsRegistrationFailed";
static NSString* const RNPushKitRegistered        = @"RNPushKitRegistered";
static NSString* const RNNotificationReceivedForeground        = @"RNNotificationReceivedForeground";
static NSString* const RNNotificationReceivedBackground    = @"RNNotificationReceivedBackground";
static NSString* const RNNotificationOpened    = @"RNNotificationOpened";
static NSString* const RNActionTriggered            = @"RNNotificationActionTriggered";

yogevbd's avatar
WIP  
yogevbd committed
11 12 13 14 15 16 17 18

@interface RNEventEmitter : RCTEventEmitter

+ (instancetype)sharedInstance;

+ (void)sendEvent:(NSString *)event body:(NSDictionary *)body;

@end