I'm starting to get some weird gaps on my screens in my React Native application.
I have simplified a screen so you see the issue here:
<SafeAreaView style={{flex:1, backgroundColor: 'yellow'}}>
<View style={{flex: 1, backgroundColor: 'green'}}>
</View>
</SafeAreaView>
When I enter the background-mode and reopen the app (quickly swipe gesture on iPhone 12) the issue has disappeared. See example:
The issue might be with the conflicting SafeAreaView in the Navigation component. You can skip the bottom padding for the SafeArea like this,
OR for functional component with Hooks
for more details on
react-native-safe-area-context
APIs here