diff --git a/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h b/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h index 75a134f7d010b2..db994d742ad88f 100644 --- a/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h +++ b/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h @@ -13,6 +13,7 @@ */ @interface RCTModalHostViewComponentView : RCTViewComponentView +#if !TARGET_OS_OSX // [TODO(macOS GH#774) /** * Subclasses may override this method and present the modal on different view controller. * Default implementation presents the modal on `[self reactViewController]`. @@ -28,5 +29,6 @@ - (void)dismissViewController:(UIViewController *)modalViewController animated:(BOOL)animated completion:(void (^)(void))completion; +#endif // ]TODO(macOS GH#774) @end diff --git a/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm b/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm index 67cd49b2e0e152..5cdfcdd14fe676 100644 --- a/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +++ b/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm @@ -21,6 +21,7 @@ using namespace facebook::react; +#if !TARGET_OS_OSX // [TODO(macOS GH#774) static UIInterfaceOrientationMask supportedOrientationsMask(ModalHostViewSupportedOrientationsMask mask) { UIInterfaceOrientationMask supportedOrientations = 0; @@ -93,12 +94,14 @@ static UIModalPresentationStyle presentationConfiguration(ModalHostViewProps con : ModalHostViewEventEmitter::OnOrientationChangeOrientation::Landscape; return {orientation}; } +#endif // ]TODO(macOS GH#774) @interface RCTModalHostViewComponentView () @end @implementation RCTModalHostViewComponentView { +#if !TARGET_OS_OSX // [TODO(macOS GH#774) RCTFabricModalHostViewController *_viewController; ModalHostViewShadowNode::ConcreteState::Shared _state; BOOL _shouldAnimatePresentation; @@ -107,6 +110,7 @@ @implementation RCTModalHostViewComponentView { RCTUIView *_modalContentsSnapshot; // TODO(macOS GH#774) } +#if !TARGET_OS_OSX // [TODO(macOS GH#774) - (instancetype)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { @@ -278,6 +282,7 @@ - (void)unmountChildComponentView:(RCTUIView *)childCo { [childComponentView removeFromSuperview]; } +#endif // ]TODO(macOS GH#774) @end diff --git a/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm b/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm index 048d1b3dd9a25b..059af110cda6d8 100644 --- a/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm +++ b/React/Fabric/Mounting/ComponentViews/Text/RCTParagraphComponentView.mm @@ -8,7 +8,10 @@ #import "RCTParagraphComponentView.h" #import "RCTParagraphComponentAccessibilityProvider.h" +#if !TARGET_OS_OSX // [TODO(macOS GH#774) #import +#endif // ]TODO(macOS GH#774) + #import #import #import diff --git a/React/Fabric/Mounting/RCTComponentViewRegistry.mm b/React/Fabric/Mounting/RCTComponentViewRegistry.mm index 4c9445376fea49..99332578ea24d6 100644 --- a/React/Fabric/Mounting/RCTComponentViewRegistry.mm +++ b/React/Fabric/Mounting/RCTComponentViewRegistry.mm @@ -31,10 +31,12 @@ - (instancetype)init if (self = [super init]) { _componentViewFactory = [RCTComponentViewFactory currentComponentViewFactory]; +#if !TARGET_OS_OSX // [TODO(macOS GH#774) [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleApplicationDidReceiveMemoryWarningNotification) name:UIApplicationDidReceiveMemoryWarningNotification object:nil]; +#endif // ]TODO(macOS GH#774) dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ // Calling this a bit later, when the main thread is probably idle while JavaScript thread is busy.