mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: This diff adds macros around the legacy architecture core. To compile out the legacy architecture, simply set: -DRCT_FIT_RM_OLD_RUNTIME=1. * RCTBridge: interface kept around * RCTRootView: interface kept around * RCTSurface: interface kept around * RCTModuleData: interface kept around (used by RCTProfile) * RCTProfile: Kept around (doesn't work in bridgeless...) * RCTCxxBridge: interface kept around * c++ bridge: removed * legacy components in core: kept around (for now) ## Details I added comments to each of the #else, and #endif directives. That way, we can more easily codemod this code in the future. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D72582307 fbshipit-source-id: 018d11cc488e97e60040bebf647f24f2437a57ce
27 lines
729 B
Objective-C
27 lines
729 B
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/RCTBridge.h>
|
|
#import <React/RCTSurfacePresenterStub.h>
|
|
#import <React/RCTSurfaceView.h>
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@interface RCTLogBoxView : UIWindow
|
|
|
|
- (instancetype)initWithFrame:(CGRect)frame;
|
|
|
|
- (void)createRootViewController:(UIView *)view;
|
|
|
|
#ifndef RCT_FIT_RM_OLD_RUNTIME
|
|
- (instancetype)initWithWindow:(UIWindow *)window bridge:(RCTBridge *)bridge;
|
|
#endif // RCT_FIT_RM_OLD_RUNTIME
|
|
- (instancetype)initWithWindow:(UIWindow *)window surfacePresenter:(id<RCTSurfacePresenterStub>)surfacePresenter;
|
|
|
|
- (void)show;
|
|
|
|
@end
|