Skip to content

Commit 85ad002

Browse files
ruslan-deyarovRuslan Deyarov
and
Ruslan Deyarov
authored
fix: added run recalculation for safe_area when window did become visible (#480)
Co-authored-by: Ruslan Deyarov <support@whitejet.dev>
1 parent 9b7873c commit 85ad002

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ios/RNCSafeAreaProvider.m

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ - (instancetype)init
2626
selector:@selector(invalidateSafeAreaInsets)
2727
name:UIKeyboardDidChangeFrameNotification
2828
object:nil];
29+
[NSNotificationCenter.defaultCenter addObserver:self
30+
selector:@selector(invalidateSafeAreaInsets)
31+
name:UIWindowDidBecomeVisibleNotification
32+
object:nil];
2933
#endif
3034
}
3135
return self;

0 commit comments

Comments
 (0)