padding react native code example

Example 1: react native margin vs padding

padding is the space between the content and the border,
whereas margin is the space outside the border.

Example 2: react native android padding style

import { Platform} from 'react-native';
import { StyleSheet,Text, SafeAreaView } from 'react-native';

<SafeAreaView style={styles.safeView}>
<Text>Random Text</Text>
 </SafeAreaView>

const styles = StyleSheet.create({
     safeView:{
        flex: 1,
        paddingTop: Platform.OS === 'android' ? 25 : 0, //Android
      }
});