When I run my code of iPhone XS it respects native navigation bar and tab bar and adjusts the height automatically. But iPhone XS Max doesn't do the same. Please check attached image.
I am checking on simulator as I don't have real device yet but on left as you can see iPhone XS have proper safe area where as iPhone XS Max doesn't.
What can be the reason for that?
There was a bug in the previous version of react-navigation, so use the latest version.
OR
Use the react-native-safe-area-view wich solves the problem.
Replace
import { SafeAreaView } from 'react-navigation'
toimport { SafeAreaView } from "react-native-safe-area-view"