Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

@property (nonatomic, weak) id<RCTFabricModalHostViewControllerDelegate> delegate;

#if !TARGET_OS_OSX // [macOS]
@property (nonatomic, assign) UIInterfaceOrientationMask supportedInterfaceOrientations;
#endif // [macOS]

@end
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ - (instancetype)init
return self;
}

#if !TARGET_OS_OSX // [macOS]
- (void)viewDidLayoutSubviews
{
[super viewDidLayoutSubviews];
Expand Down Expand Up @@ -81,5 +82,6 @@ - (UIInterfaceOrientationMask)supportedInterfaceOrientations
return _supportedInterfaceOrientations;
}
#endif // RCT_DEV
#endif // [macOS]

@end
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ - (BOOL)canBecomeFirstResponder
return paragraphProps.isSelectable;
}

#if !TARGET_OS_OSX // [macOS]
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender
{
auto const &paragraphProps = *std::static_pointer_cast<ParagraphProps const>(_props);
Expand All @@ -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
{
Expand Down