mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-11 09:11:14 +08:00
Initial commit
This commit is contained in:
19
ReactKit/Base/RCTModuleMethod.h
Normal file
19
ReactKit/Base/RCTModuleMethod.h
Normal file
@@ -0,0 +1,19 @@
|
||||
// Copyright 2004-present Facebook. All Rights Reserved.
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@protocol RCTNativeModule;
|
||||
|
||||
@interface RCTModuleMethod : NSObject
|
||||
|
||||
- (instancetype)initWithSelector:(SEL)selector
|
||||
JSMethodName:(NSString *)JSMethodName
|
||||
arity:(NSUInteger)arity
|
||||
blockArgumentIndexes:(NSIndexSet *)blockArgumentIndexes;
|
||||
|
||||
@property (readonly, nonatomic, assign) SEL selector;
|
||||
@property (readonly, nonatomic, copy) NSString *JSMethodName;
|
||||
@property (readonly, nonatomic, assign) NSUInteger arity;
|
||||
@property (readonly, nonatomic, copy) NSIndexSet *blockArgumentIndexes;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user