diff --git a/src/DateTimePickerModal.ios.js b/src/DateTimePickerModal.ios.js index 1cc05d5..6ef0b0a 100644 --- a/src/DateTimePickerModal.ios.js +++ b/src/DateTimePickerModal.ios.js @@ -221,6 +221,7 @@ const pickerStyles = StyleSheet.create({ modal: { justifyContent: "flex-end", margin: 10, + marginBottom: isIphoneX() ? 34 : 10, }, container: { borderRadius: BORDER_RADIUS, @@ -341,7 +342,6 @@ export const cancelButtonStyles = StyleSheet.create({ button: { borderRadius: BORDER_RADIUS, height: 57, - marginBottom: isIphoneX() ? 20 : 0, justifyContent: "center", }, buttonLight: { diff --git a/src/utils.js b/src/utils.js index c77b818..aaa717f 100644 --- a/src/utils.js +++ b/src/utils.js @@ -13,9 +13,13 @@ export const isIphoneX = () => { width === 812 || height === 844 || width === 844 || + height === 852 || + width === 852 || height === 896 || width === 896 || height === 926 || - width === 926) + width === 926 || + height === 932 || + width === 932) ); };