mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
17df595e32
Summary: public Android implement ViewManager methods via a dispatch method on UIManager, whereas iOS implements them by exposing the methods on the view manager modules directly. This diff polyfills Android's implementation on top of the iOS implementation, allowing the same JS API to be used for both. Reviewed By: javache Differential Revision: D2803020 fb-gh-sync-id: 0da0544e593dc936467d16ce957a77f7ca41355b
35 lines
1004 B
Objective-C
35 lines
1004 B
Objective-C
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "RCTBridgeMethod.h"
|
|
#import "RCTNullability.h"
|
|
|
|
@class RCTBridge;
|
|
|
|
@interface RCTMethodArgument : NSObject
|
|
|
|
@property (nonatomic, copy, readonly) NSString *type;
|
|
@property (nonatomic, readonly) RCTNullability nullability;
|
|
@property (nonatomic, readonly) BOOL unused;
|
|
|
|
@end
|
|
|
|
@interface RCTModuleMethod : NSObject <RCTBridgeMethod>
|
|
|
|
@property (nonatomic, readonly) Class moduleClass;
|
|
@property (nonatomic, readonly) SEL selector;
|
|
|
|
- (instancetype)initWithMethodSignature:(NSString *)objCMethodName
|
|
JSMethodName:(NSString *)JSMethodName
|
|
moduleClass:(Class)moduleClass NS_DESIGNATED_INITIALIZER;
|
|
|
|
@end
|