diff --git a/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.h b/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.h index cf3b82e99f9619..c082d7eab7f8bb 100644 --- a/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.h +++ b/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.h @@ -15,6 +15,8 @@ @property (nonatomic, weak) id delegate; +#if !TARGET_OS_OSX // [macOS] @property (nonatomic, assign) UIInterfaceOrientationMask supportedInterfaceOrientations; +#endif // [macOS] @end diff --git a/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.mm b/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.mm index f15c2ecafb0698..e96e33b5014b2e 100644 --- a/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.mm +++ b/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.mm @@ -32,6 +32,7 @@ - (instancetype)init return self; } +#if !TARGET_OS_OSX // [macOS] - (void)viewDidLayoutSubviews { [super viewDidLayoutSubviews]; @@ -81,5 +82,6 @@ - (UIInterfaceOrientationMask)supportedInterfaceOrientations return _supportedInterfaceOrientations; } #endif // RCT_DEV +#endif // [macOS] @end diff --git a/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm b/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm index 8cc5a40fd41fb0..c23a3f696b1192 100644 --- a/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm +++ b/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm @@ -268,7 +268,6 @@ - (BOOL)canBecomeFirstResponder return paragraphProps.isSelectable; } -#if !TARGET_OS_OSX // [macOS] - (BOOL)canPerformAction:(SEL)action withSender:(id)sender { auto const ¶graphProps = *std::static_pointer_cast(_props); @@ -277,9 +276,12 @@ - (BOOL)canPerformAction:(SEL)action withSender:(id)sender return YES; } +#if !TARGET_OS_OSX // [macOS] return [self.nextResponder canPerformAction:action withSender:sender]; +#else // [macOS + return NO; +#endif // macOS] } -#endif // [macOS] - (void)copy:(id)sender {