mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-16 18:50:07 +08:00
Replace exported method registration with statically allocated struct
Reviewed By: fromcelticpark Differential Revision: D5389383 fbshipit-source-id: 9eb29b254b616574966b43ad24aa880d44589652
This commit is contained in:
committed by
Facebook Github Bot
parent
d94f3e4b98
commit
cb12080179
@@ -10,6 +10,7 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import <React/RCTBridgeMethod.h>
|
||||
#import <React/RCTBridgeModule.h>
|
||||
#import <React/RCTNullability.h>
|
||||
|
||||
@class RCTBridge;
|
||||
@@ -27,9 +28,7 @@
|
||||
@property (nonatomic, readonly) Class moduleClass;
|
||||
@property (nonatomic, readonly) SEL selector;
|
||||
|
||||
- (instancetype)initWithMethodSignature:(NSString *)objCMethodName
|
||||
JSMethodName:(NSString *)JSMethodName
|
||||
isSync:(BOOL)isSync
|
||||
- (instancetype)initWithExportedMethod:(const RCTMethodInfo *)exportMethod
|
||||
moduleClass:(Class)moduleClass NS_DESIGNATED_INITIALIZER;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user