From 85ad00298ae8f82e7ff1fa913dbe752676b01a85 Mon Sep 17 00:00:00 2001 From: ruslan-deyarov <109741896+ruslan-deyarov@users.noreply.github.com> Date: Tue, 23 Apr 2024 21:57:31 +0400 Subject: [PATCH] fix: added run recalculation for safe_area when window did become visible (#480) Co-authored-by: Ruslan Deyarov --- ios/RNCSafeAreaProvider.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/RNCSafeAreaProvider.m b/ios/RNCSafeAreaProvider.m index 63523661..69d537b7 100644 --- a/ios/RNCSafeAreaProvider.m +++ b/ios/RNCSafeAreaProvider.m @@ -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;