react-native-safe-area-context
react-native-safe-area-context copied to clipboard
fix: added run recalculation for safe_area when window did become visible
Added run recalculation for safe_area when window did become visible
Summary
We found missed scenario when we have to run recalculation for safe_area. In case we open before native modal and then put our app into background mode. After restore it from background and close this modal we see old values for safe_area. We need to run recalculation to cover this scenario.
Native modal partially cover screen and in this case safe_area is reduced a little bit by iOS.
Do you have a reproduction here?
Do you have a reproduction here?
Yes, let me attach video.
Wrong safe_area size after background and closing native modal on top.
https://github.com/th3rdwave/react-native-safe-area-context/assets/109741896/c0d5c2fa-9aaa-405b-92cb-eb4625b25d9d
Thanks, sorry about the delay merging this!