Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native android safeareaview

import { StyleSheet, Platform, StatusBar } from "react-native";

export default StyleSheet.create({
  AndroidSafeArea: {
    flex: 1,
    backgroundColor: "white",
    paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0
  }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #native #android #safeareaview
ADD COMMENT
Topic
Name
6+5 =