iphone12 导航栏没适配
JedShiMing opened this issue · 2 comments
JedShiMing commented
JedShiMing commented
Theme.js
新增
const IPHONE12__WIDTH = 390;
const IPHONE12__HEIGHT = 844;
修改isIPhoneX
const isIPhoneX = (() => {
if (Platform.OS === 'web') return false;
return (
Platform.OS === 'ios' &&
((D_HEIGHT === X_HEIGHT && D_WIDTH === X_WIDTH) ||
(D_HEIGHT === X_WIDTH && D_WIDTH === X_HEIGHT)) ||
((D_HEIGHT === XSMAX_HEIGHT && D_WIDTH === XSMAX_WIDTH) ||
(D_HEIGHT === XSMAX_WIDTH && D_WIDTH === XSMAX_HEIGHT)) ||
((D_HEIGHT === IPHONE12__HEIGHT && D_WIDTH === IPHONE12__WIDTH) ||
(D_HEIGHT === IPHONE12__WIDTH && D_WIDTH === IPHONE12__HEIGHT))
);
})();
JedShiMing commented
fix-0.7.5 resolved