-
Notifications
You must be signed in to change notification settings - Fork 25k
Closed
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
React's doc for sending events to JS from native code suggests using RCTEventDispatcher's sendAppEventWithName:body method.
The problem is that RCTNativeAppEventEmitter does not exist. Not sure what the correct solution to this is. Should we create a RCTNativeAppEventEmitter module? Or should the docs suggest using sendDeviceEventWithName:body.
- (void)sendAppEventWithName:(NSString *)name body:(id)body
{
[_bridge enqueueJSCall:@"RCTNativeAppEventEmitter.emit"
args:body ? @[name, body] : @[name]];
}
Metadata
Metadata
Assignees
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.