2015-07-28 18:07:45 +00:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2017-04-20 15:20:03 +00:00
|
|
|
#import <Foundation/Foundation.h>
|
2015-07-28 18:07:45 +00:00
|
|
|
|
2017-04-20 15:20:03 +00:00
|
|
|
#import <React/RCTDefines.h>
|
2015-07-28 18:07:45 +00:00
|
|
|
|
2017-04-20 15:20:03 +00:00
|
|
|
#if RCT_DEV
|
|
|
|
|
|
|
|
@class RCTBridge;
|
2017-05-05 15:32:15 +00:00
|
|
|
@protocol RCTPackagerClientMethod;
|
2017-04-20 15:20:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Encapsulates connection to React Native packager
|
|
|
|
*/
|
|
|
|
@interface RCTPackagerConnection : NSObject
|
|
|
|
|
|
|
|
- (instancetype)initWithBridge:(RCTBridge *)bridge;
|
2017-05-05 15:32:15 +00:00
|
|
|
- (void)addHandler:(id<RCTPackagerClientMethod>)handler forMethod:(NSString *)name;
|
2015-09-04 10:44:55 +00:00
|
|
|
|
2015-07-28 18:07:45 +00:00
|
|
|
@end
|
2017-04-20 15:20:03 +00:00
|
|
|
|
|
|
|
#endif
|