From c9f514778a227be9eb4168e94f9a945b67f9c7f3 Mon Sep 17 00:00:00 2001 From: Terry Kwon Date: Wed, 22 Apr 2026 09:08:41 -0700 Subject: [PATCH] Guard tvOS-unavailable APIs in RCTRedBox2Controller Summary: `separatorStyle` and `UITableViewCellSeparatorStyleNone` are unavailable on tvOS, causing the airwave-tvos-appletvos build to fail. Wrap them with `#if !TARGET_OS_TV`, matching the existing pattern in `RCTRedBoxController.mm`. Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D102001404 --- packages/react-native/React/CoreModules/RCTRedBox2Controller.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-native/React/CoreModules/RCTRedBox2Controller.mm b/packages/react-native/React/CoreModules/RCTRedBox2Controller.mm index e3a5a3f1ebe..1040e797562 100644 --- a/packages/react-native/React/CoreModules/RCTRedBox2Controller.mm +++ b/packages/react-native/React/CoreModules/RCTRedBox2Controller.mm @@ -99,7 +99,9 @@ - (void)viewDidLoad _stackTraceTableView.delegate = self; _stackTraceTableView.dataSource = self; _stackTraceTableView.backgroundColor = [UIColor clearColor]; +#if !TARGET_OS_TV _stackTraceTableView.separatorStyle = UITableViewCellSeparatorStyleNone; +#endif _stackTraceTableView.indicatorStyle = UIScrollViewIndicatorStyleWhite; _stackTraceTableView.bounces = NO; [self.view addSubview:_stackTraceTableView];