mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Make RCTPackagerConnection not depend on RCTBridge
Reviewed By: javache Differential Revision: D5245497 fbshipit-source-id: 3c41dca98fc39c77d4b3c8932ee2a5b84880cf8c
This commit is contained in:
committed by
Facebook Github Bot
parent
390c8cf96e
commit
d27ff20588
@@ -15,13 +15,15 @@
|
||||
|
||||
@class RCTBridge;
|
||||
@protocol RCTPackagerClientMethod;
|
||||
@protocol RCTPackagerConnectionConfig;
|
||||
|
||||
/**
|
||||
* Encapsulates connection to React Native packager
|
||||
*/
|
||||
@interface RCTPackagerConnection : NSObject
|
||||
|
||||
- (instancetype)initWithBridge:(RCTBridge *)bridge;
|
||||
+ (instancetype)connectionForBridge:(RCTBridge *)bridge;
|
||||
- (instancetype)initWithConfig:(id<RCTPackagerConnectionConfig>)config;
|
||||
- (void)addHandler:(id<RCTPackagerClientMethod>)handler forMethod:(NSString *)name;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user