📜  维度反应本机 - Javascript代码示例

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

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

console.log({
    width: Dimensions.get('window').width,
    height: Dimensions.get('window').height
})