📅  最后修改于: 2022-03-11 15:03:17.487000             🧑  作者: Mango
import { Dimensions} from "react-native";
const screenHeight = Dimensions.get('screen').height;
const windowHeight = Dimensions.get('window').height;
const navbarHeight = screenHeight - windowHeight