Skip to content

Commit 8df46c3

Browse files
committed
Add import RCTBridge.h for event sending example
The example omitted the `#import "RCTBridge.h"`, which will lead to CE.
1 parent f3cd27c commit 8df46c3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/NativeModulesIOS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ Note that the constants are exported only at initialization time, so if you chan
177177
The native module can signal events to JavaScript without being invoked directly. The easiest way to do this is to use `eventDispatcher`:
178178

179179
```objective-c
180+
#import "RCTBridge.h"
181+
180182
- (void)calendarEventReminderReceived:(NSNotification *)notification
181183
{
182184
NSString *eventName = notification.userInfo[@"name"];

0 commit comments

Comments
 (0)