mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
6fcb878a89
Summary: Original commit changeset: 78387999f94e Original Phabricator Diff: D34392529 (https://github.com/facebook/react-native/commit/086c13dd5fba3f77acbc70c9bdedc9299118b526) Backing this out because it breaks univeral hot reload support. We should probably find a way to support this *without* relying on swizzling. This was originally backed out it because it was blocking app store submission, but this is gated by `RN_DEV` so should never be included in a release build. Changelog: [General][Removed] - The diffs renames the required variable which was causing conflicts in names with Apple core SDK's Reviewed By: cipolleschi Differential Revision: D37311377 fbshipit-source-id: 18abb1b53a5be054098cd3717705ea5086c4f595
46 lines
1.0 KiB
Objective-C
46 lines
1.0 KiB
Objective-C
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import <React/RCTDefines.h>
|
|
|
|
#if RCT_DEV // Only supported in dev mode
|
|
|
|
@class RCTPackagerClientResponder;
|
|
@class RCTReconnectingWebSocket;
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern const int RCT_PACKAGER_CLIENT_PROTOCOL_VERSION;
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
#endif
|
|
|
|
@protocol RCTPackagerClientMethod <NSObject>
|
|
|
|
- (void)handleRequest:(NSDictionary<NSString *, id> *)params withResponder:(RCTPackagerClientResponder *)responder;
|
|
- (void)handleNotification:(NSDictionary<NSString *, id> *)params;
|
|
|
|
@optional
|
|
|
|
/** By default object will receive its methods on the main queue, unless this method is overridden. */
|
|
- (dispatch_queue_t)methodQueue;
|
|
|
|
@end
|
|
|
|
@interface RCTPackagerClientResponder : NSObject
|
|
|
|
- (instancetype)initWithId:(id)msgId socket:(RCTReconnectingWebSocket *)socket;
|
|
- (void)respondWithResult:(id)result;
|
|
- (void)respondWithError:(id)error;
|
|
|
|
@end
|
|
|
|
#endif
|