📌  相关文章
📜  react native android safeareaview - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:55.953000             🧑  作者: Mango

代码示例3
import { StyleSheet, Platform, StatusBar } from "react-native";

export default StyleSheet.create({
  AndroidSafeArea: {
    flex: 1,
    backgroundColor: "white",
    paddingTop: Platform.OS === "android" ? StatusBar.currentHeight : 0
  }
});