1import { SafeAreaView } from 'react-native-safe-area-context';
2
3function SomeComponent() {
4 return (
5 <SafeAreaView style={{ flex: 1, backgroundColor: 'red' }}>
6 <View style={{ flex: 1, backgroundColor: 'blue' }} />
7 </SafeAreaView>
8 );
9}