Skip to content

Commit

Permalink
Observe UIKeyboardDidChangeFrameNotification (#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
ken0nek committed Oct 18, 2023
1 parent 1ad7379 commit 4d50a85
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/Fabric/RNCSafeAreaProviderComponentView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ - (instancetype)initWithFrame:(CGRect)frame
selector:@selector(invalidateSafeAreaInsets)
name:UIKeyboardDidHideNotification
object:nil];
[NSNotificationCenter.defaultCenter addObserver:self
selector:@selector(invalidateSafeAreaInsets)
name:UIKeyboardDidChangeFrameNotification
object:nil];
#endif
}

Expand Down
4 changes: 4 additions & 0 deletions ios/RNCSafeAreaProvider.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ - (instancetype)init
selector:@selector(invalidateSafeAreaInsets)
name:UIKeyboardDidHideNotification
object:nil];
[NSNotificationCenter.defaultCenter addObserver:self
selector:@selector(invalidateSafeAreaInsets)
name:UIKeyboardDidChangeFrameNotification
object:nil];
#endif
}
return self;
Expand Down

0 comments on commit 4d50a85

Please sign in to comment.