//
//  ENSenderModule.m
//  ENBLEProject
//
//  Created by lvwang2002 on 16/4/9.
//  Copyright © 2016年 Facebook. All rights reserved.
//

#import "ENSenderModule.h"
//#import "RCTBridge.h"
//#import "RCTEventDispatcher.h"

@implementation ENSenderModule

//@synthesize bridge = _bridge;

+(ENSenderModule *)shareSenderModule{
	static ENSenderModule *senderModule = NULL;
	static dispatch_once_t onceToken;
	dispatch_once(&onceToken, ^{
		senderModule = [[ENSenderModule alloc] init];
	});
	
	return senderModule;
}
- (void)calendarEventReminderReceived:(NSNotification *)notification{
	NSString *eventName = notification.userInfo[@"name"];
	[self.bridge.eventDispatcher sendAppEventWithName:@"EventReminder"
																							 body:@{@"name": eventName}];
}

-(void)sendEventeName:(NSString *)eventName Information:(NSDictionary *)information{
//	NSString *eventName = notification.userInfo[@"name"];
	[self.bridge.eventDispatcher sendAppEventWithName:@"EventReminder"
																							 body:@{@"name": @"hehe"}];
}

@end
