Answers for "react is there a safe area view for android"

2

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
    },
});
Posted by: Guest on April-22-2020
1

react is there a safe area view for android

import GlobalStyles from './GlobalStyles';
import { SafeAreaView } from "react-native";

render() {
    return (
      <SafeAreaView style={GlobalStyles.droidSafeArea}>
          //More controls and such
      </SafeAreaView>
    );
  }
}
Posted by: Guest on April-22-2020

Code answers related to "react is there a safe area view for android"

Code answers related to "Javascript"

Browse Popular Code Answers by Language