Skip to content

Commit

Permalink
Update RNCSafeAreaProviderComponentView.mm
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobp100 committed Jul 10, 2023
1 parent 3c87e44 commit c5c9a09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ios/Fabric/RNCSafeAreaProviderComponentView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ - (instancetype)initWithFrame:(CGRect)frame
static const auto defaultProps = std::make_shared<const RNCSafeAreaProviderProps>();
_props = defaultProps;

#if !TARGET_OS_TV
[NSNotificationCenter.defaultCenter addObserver:self
selector:@selector(invalidateSafeAreaInsets)
name:UIKeyboardDidShowNotification
Expand All @@ -33,6 +34,7 @@ - (instancetype)initWithFrame:(CGRect)frame
selector:@selector(invalidateSafeAreaInsets)
name:UIKeyboardDidHideNotification
object:nil];
#endif
}

return self;
Expand Down

0 comments on commit c5c9a09

Please sign in to comment.