📜  反应原生:如何知道软键高度 - Javascript 代码示例

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

代码示例2
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;