showing results for - "react is there a safe area view for android"
Lara
06 Jan 2019
1import { StyleSheet, Platform } from 'react-native';
2export default StyleSheet.create({
3    droidSafeArea: {
4        flex: 1,
5        backgroundColor: npLBlue,
6        paddingTop: Platform.OS === 'android' ? 25 : 0
7    },
8});
Lya
16 Jun 2019
1import GlobalStyles from './GlobalStyles';
2import { SafeAreaView } from "react-native";
3
4render() {
5    return (
6      <SafeAreaView style={GlobalStyles.droidSafeArea}>
7          //More controls and such
8      </SafeAreaView>
9    );
10  }
11}