目前,我在检测移动设备是否支持android的Notch显示时遇到问题。
有人可以帮我吗?(我需要使用android studio中的代码来执行此操作)
谢谢。
我试图做一个具体的案例iPhone Xs Max中react native?
这是IphoneX来自react-native-iphone-x-helper的一些代码
export function isIphoneX() {
    let dimen = Dimensions.get('window');
    return (
        Platform.OS === 'ios' &&
        !Platform.isPad &&
        !Platform.isTVOS &&
        (dimen.height === 812 || dimen.width === 812)
    );
}
什么是尺寸iPhone Xs Max和这样够了刚刚添加的iPhone Xs Max尺寸是多少?