RNEventEmitter.h 787 Bytes
Newer Older
yogevbd's avatar
WIP  
yogevbd committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#import "RCTEventEmitter.h"

static NSString* const Registered                = @"remoteNotificationsRegistered";
static NSString* const RegistrationFailed            = @"remoteNotificationsRegistrationFailed";
static NSString* const PushKitRegistered        = @"pushKitRegistered";
static NSString* const NotificationReceivedForeground        = @"notificationReceivedForeground";
static NSString* const NotificationReceivedBackground    = @"notificationReceivedBackground";
static NSString* const NotificationOpened    = @"notificationOpened";
static NSString* const NotificationActionReceived            = @"notificationActionReceived";

@interface RNEventEmitter : RCTEventEmitter

+ (instancetype)sharedInstance;

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

@end