📅  最后修改于: 2022-03-11 15:02:25.050000             🧑  作者: Mango
import {Dimensions, StatusBar} from 'react-native';
const DEVICE_HEIGHT = Dimensions.get('screen').height;
const STATUS_BAR = StatusBar.statusBarHeight || 24;
const WINDOW_HEIGHT = Dimensions.get('window').height;