Add import RCTBridge.h for event sending example

The example omitted the `#import "RCTBridge.h"`, which will lead to CE.
This commit is contained in:
John Wu
2015-03-30 21:42:59 +08:00
parent f3cd27cf48
commit 8df46c329b

View File

@@ -177,6 +177,8 @@ Note that the constants are exported only at initialization time, so if you chan
The native module can signal events to JavaScript without being invoked directly. The easiest way to do this is to use `eventDispatcher`:
```objective-c
#import "RCTBridge.h"
- (void)calendarEventReminderReceived:(NSNotification *)notification
{
NSString *eventName = notification.userInfo[@"name"];