Skip to content

Commit

Permalink
fix: added run recalculation for safe_area when window did become vis…
Browse files Browse the repository at this point in the history
…ible (#480)

Co-authored-by: Ruslan Deyarov <support@whitejet.dev>
  • Loading branch information
ruslan-deyarov and Ruslan Deyarov authored Apr 23, 2024
1 parent 9b7873c commit 85ad002
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/RNCSafeAreaProvider.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ - (instancetype)init
selector:@selector(invalidateSafeAreaInsets)
name:UIKeyboardDidChangeFrameNotification
object:nil];
[NSNotificationCenter.defaultCenter addObserver:self
selector:@selector(invalidateSafeAreaInsets)
name:UIWindowDidBecomeVisibleNotification
object:nil];
#endif
}
return self;
Expand Down

0 comments on commit 85ad002

Please sign in to comment.