Skip to content

Commit 4fdeb48

Browse files
kastopiamotiz88
authored andcommitted
Guard tvOS-unavailable APIs in RCTRedBox2Controller (#56568)
Summary: Pull Request resolved: #56568 `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 fbshipit-source-id: 383e1cc64070000c258b71a60aa4b4ef6453206e
1 parent 0b9b5d3 commit 4fdeb48

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/react-native/React/CoreModules/RCTRedBox2Controller.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ - (void)viewDidLoad
9999
_stackTraceTableView.delegate = self;
100100
_stackTraceTableView.dataSource = self;
101101
_stackTraceTableView.backgroundColor = [UIColor clearColor];
102+
#if !TARGET_OS_TV
102103
_stackTraceTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
104+
#endif
103105
_stackTraceTableView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
104106
_stackTraceTableView.bounces = NO;
105107
[self.view addSubview:_stackTraceTableView];

0 commit comments

Comments
 (0)