diff --git a/ios/Fabric/RNCSafeAreaProviderComponentView.mm b/ios/Fabric/RNCSafeAreaProviderComponentView.mm index 910ebb68..f315ccda 100644 --- a/ios/Fabric/RNCSafeAreaProviderComponentView.mm +++ b/ios/Fabric/RNCSafeAreaProviderComponentView.mm @@ -36,6 +36,7 @@ - (instancetype)initWithFrame:(CGRect)frame return self; } +#if !TARGET_OS_OSX - (void)willMoveToSuperview:(UIView *)newSuperView { [super willMoveToSuperview:newSuperView]; @@ -45,6 +46,7 @@ - (void)willMoveToSuperview:(UIView *)newSuperView [self registerNotifications]; } } +#endif - (void)registerNotifications {