📜  Calculae android height - 任何代码示例

📅  最后修改于: 2022-03-11 14:54:57.651000             🧑  作者: Mango

代码示例1
import {Dimensions, StatusBar} from 'react-native'; 

const SCREEN_HEIGHT = Dimensions.get('screen').height; // device height
const STATUS_BAR_HEIGHT = StatusBar.currentHeight || 24; 
const WINDOW_HEIGHT = Dimensions.get('window').height;