Skip to content

Commit f2a7d7e

Browse files
fix building Fabric on macOS
1 parent c170f45 commit f2a7d7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ios/Fabric/RNCSafeAreaProviderComponentView.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ - (instancetype)initWithFrame:(CGRect)frame
3636
return self;
3737
}
3838

39+
#if !TARGET_OS_OSX
3940
- (void)willMoveToSuperview:(UIView *)newSuperView
4041
{
4142
[super willMoveToSuperview:newSuperView];
@@ -45,6 +46,7 @@ - (void)willMoveToSuperview:(UIView *)newSuperView
4546
[self registerNotifications];
4647
}
4748
}
49+
#endif
4850

4951
- (void)registerNotifications
5052
{

0 commit comments

Comments
 (0)