react native android padding style

Solutions on MaxInterview for react native android padding style by the best coders in the world

showing results for - "react native android padding style"
Antonio
04 Nov 2019
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});