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:
@@ -200,10 +200,7 @@ typedef NS_ENUM(NSInteger, RCTTouchEventType) {
|
||||
reactTouch[@"timestamp"] = @(nativeTouch.timestamp * 1000); // in ms, for JS
|
||||
}
|
||||
|
||||
+ (NSArray *)JSMethods
|
||||
{
|
||||
return @[@"RCTEventEmitter.receiveTouches"];
|
||||
}
|
||||
RCT_IMPORT_METHOD(RCTEventEmitter, receiveTouches);
|
||||
|
||||
/**
|
||||
* Constructs information about touch events to send across the serialized
|
||||
|
||||
Reference in New Issue
Block a user