// use SafeAreaProvider instead, it works with both ios and android
...
import { SafeAreaProvider } from 'react-native-safe-area-context';
function App() {
return <SafeAreaProvider>...</SafeAreaProvider>;
}
// or
export const Container = styled(SafeAreaProvider)`
...
`;