diff --git a/React/CoreModules/RCTDevMenu.mm b/React/CoreModules/RCTDevMenu.mm index 9e857fce32b..69ff839faa7 100644 --- a/React/CoreModules/RCTDevMenu.mm +++ b/React/CoreModules/RCTDevMenu.mm @@ -122,7 +122,7 @@ RCT_EXPORT_MODULE() object:nil]; _extraMenuItems = [NSMutableArray new]; -#if TARGET_OS_SIMULATOR +#if TARGET_OS_SIMULATOR || TARGET_OS_MACCATALYST RCTKeyCommands *commands = [RCTKeyCommands sharedInstance]; __weak __typeof(self) weakSelf = self; diff --git a/React/CoreModules/RCTRedBox.mm b/React/CoreModules/RCTRedBox.mm index 115ecf263bc..a83fc0b59d4 100644 --- a/React/CoreModules/RCTRedBox.mm +++ b/React/CoreModules/RCTRedBox.mm @@ -116,7 +116,7 @@ _stackTraceTableView.indicatorStyle = UIScrollViewIndicatorStyleWhite; [rootView addSubview:_stackTraceTableView]; -#if TARGET_OS_SIMULATOR +#if TARGET_OS_SIMULATOR || TARGET_OS_MACCATALYST NSString *reloadText = @"Reload\n(\u2318R)"; NSString *dismissText = @"Dismiss\n(ESC)"; NSString *copyText = @"Copy\n(\u2325\u2318C)"; diff --git a/React/Modules/RCTRedBoxExtraDataViewController.m b/React/Modules/RCTRedBoxExtraDataViewController.m index 59b6dae3b18..05da05daa54 100644 --- a/React/Modules/RCTRedBoxExtraDataViewController.m +++ b/React/Modules/RCTRedBoxExtraDataViewController.m @@ -106,7 +106,7 @@ _tableView.rowHeight = UITableViewAutomaticDimension; _tableView.allowsSelection = NO; -#if TARGET_OS_SIMULATOR +#if TARGET_OS_SIMULATOR || TARGET_OS_MACCATALYST NSString *reloadText = @"Reload JS (\u2318R)"; NSString *dismissText = @"Dismiss (ESC)"; #else