1import { Platform} from 'react-native';
2import { StyleSheet,Text, SafeAreaView } from 'react-native';
3
4<SafeAreaView style={styles.safeView}>
5<Text>Random Text</Text>
6 </SafeAreaView>
7
8const styles = StyleSheet.create({
9 safeView:{
10 flex: 1,
11 paddingTop: Platform.OS === 'android' ? 25 : 0, //Android
12 }
13});