Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react is there a safe area view for android

import { StyleSheet, Platform } from 'react-native';
export default StyleSheet.create({
    droidSafeArea: {
        flex: 1,
        backgroundColor: npLBlue,
        paddingTop: Platform.OS === 'android' ? 25 : 0
    },
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #safe #area #view #android
ADD COMMENT
Topic
Name
5+8 =