mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d31d83f410
Summary: If an RN app is embedded in a Mac Catalyst app that uses the UIWindowScene API to manage multiple windows, LogBox would fail to render because it didn't know which UIWindowScene to render to. This diff fixes that situation by ensuring that the LogBox window gets rendered in the key window's scene. Changelog: [iOS][Fixed] - Update iOS LogBox to render its UIWindow with the key window's UIWindowScene Reviewed By: appden Differential Revision: D35027831 fbshipit-source-id: e0df5865f95323b03d08d6b1fb3ec912aa9a9167
23 lines
509 B
Objective-C
23 lines
509 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/RCTSurfaceView.h>
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@interface RCTLogBoxView : UIWindow
|
|
|
|
- (instancetype)initWithFrame:(CGRect)frame;
|
|
|
|
- (void)createRootViewController:(UIView *)view;
|
|
|
|
- (instancetype)initWithWindow:(UIWindow *)window bridge:(RCTBridge *)bridge;
|
|
|
|
- (void)show;
|
|
|
|
@end
|