mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Added non-class-scanning-based approach fror registering js methods
This commit is contained in:
@@ -25,14 +25,9 @@
|
||||
return self;
|
||||
}
|
||||
|
||||
+ (NSArray *)JSMethods
|
||||
{
|
||||
return @[
|
||||
@"RCTNativeAppEventEmitter.emit",
|
||||
@"RCTDeviceEventEmitter.emit",
|
||||
@"RCTEventEmitter.receiveEvent",
|
||||
];
|
||||
}
|
||||
RCT_IMPORT_METHOD(RCTNativeAppEventEmitter, emit);
|
||||
RCT_IMPORT_METHOD(RCTDeviceEventEmitter, emit);
|
||||
RCT_IMPORT_METHOD(RCTEventEmitter, receiveEvent);
|
||||
|
||||
- (void)sendAppEventWithName:(NSString *)name body:(id)body
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user