robcalcroft / react-native-in-app-notification

:bell: Customisable in-app notification component for React Native
MIT License
269 stars 78 forks source link

Screen content shifts when notification appears during ios in-call status #21

Open lukecyca opened 5 years ago

lukecyca commented 5 years ago

A standard iOS status bar is 20px in height, so most apps have a 20px top spacer to compensate.

When the iOS in-call status is active, the status bar is effectively 40px in height, but iOS just shrinks the entire viewport to make room for the additional 20px. So the application doesn't have to, for example, increase its padding to 40px.

When react-native-in-app-notification hides the status bar for a few seconds while showing an alert, the shrunken viewport expands by 20px back to its default.

This causes the entire layout to shift when a notification is received, and then shift back when it disappears. This only occurs when the in-call status is active.