We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8df46c3 commit 4f49271Copy full SHA for 4f49271
1 file changed
docs/NativeModulesIOS.md
@@ -178,13 +178,20 @@ The native module can signal events to JavaScript without being invoked directly
178
179
```objective-c
180
#import "RCTBridge.h"
181
+#import "RCTEventDispatcher.h"
182
+
183
+@implementation CalendarManager
184
185
+@synthesize bridge = _bridge;
186
187
- (void)calendarEventReminderReceived:(NSNotification *)notification
188
{
189
NSString *eventName = notification.userInfo[@"name"];
190
[self.bridge.eventDispatcher sendAppEventWithName:@"EventReminder"
191
body:@{@"name": eventName}];
192
}
193
194
+@end
195
```
196
197
JavaScript code can subscribe to these events:
0 commit comments