react-native: 0.59.5
react-navigation: ^3.9.1
const { width, height, scale, fontScale } = Dimensions.get('window');
width:屏幕宽度
height:屏幕高度
scale:缩放等级?
注意:屏幕旋转时宽高会改变
react-native: 0.59.5
react-navigation: ^3.9.1
const { width, height, scale, fontScale } = Dimensions.get('window');
width:屏幕宽度
height:屏幕高度
scale:缩放等级?
注意:屏幕旋转时宽高会改变
转载于:https://my.oschina.net/u/2400070/blog/3046524