From 8df46c329ba41595fbaa09d13efeb0e4eb439fe9 Mon Sep 17 00:00:00 2001 From: John Wu Date: Mon, 30 Mar 2015 21:42:59 +0800 Subject: [PATCH] Add import RCTBridge.h for event sending example The example omitted the `#import "RCTBridge.h"`, which will lead to CE. --- docs/NativeModulesIOS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/NativeModulesIOS.md b/docs/NativeModulesIOS.md index d0f491eba..32572afb1 100644 --- a/docs/NativeModulesIOS.md +++ b/docs/NativeModulesIOS.md @@ -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"];