Skip to content

Commit b7d428f

Browse files
SaadnajmiCopilot
andcommitted
refactor(macos): migrate RedBox 2.0 to RCTUIKit primitives
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 37169ae commit b7d428f

2 files changed

Lines changed: 162 additions & 636 deletions

File tree

packages/react-native/React/CoreModules/RCTRedBox2Controller+Internal.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,16 @@
66
*/
77

88
#import <React/RCTDefines.h>
9+
#import <React/RCTUIKit.h> // [macOS]
910

1011
#import "RCTRedBox+Internal.h"
1112

1213
#if RCT_DEV_MENU
1314

1415
typedef void (^RCTRedBox2ButtonPressHandler)(void);
1516

16-
#if !TARGET_OS_OSX // [macOS]
17-
@interface RCTRedBox2Controller : UIViewController <RCTRedBox2Controlling, UITableViewDelegate, UITableViewDataSource>
18-
#else // [macOS
19-
@interface RCTRedBox2Controller : NSViewController <RCTRedBox2Controlling, NSTableViewDelegate, NSTableViewDataSource>
20-
#endif // macOS]
17+
@interface RCTRedBox2Controller
18+
: RCTPlatformViewController <RCTRedBox2Controlling, RCTUITableViewDelegate, RCTUITableViewDataSource> // [macOS]
2119

2220
@property (nonatomic, weak) id<RCTRedBoxControllerActionDelegate> actionDelegate;
2321

0 commit comments

Comments
 (0)