From cab8968e321af831cd30a197f8bd98fef08df436 Mon Sep 17 00:00:00 2001 From: Nick Seryakov Date: Fri, 18 Aug 2023 12:49:47 +0400 Subject: [PATCH] feat: Support iPhone 14 Pro & Pro Max safe area bottom inset (#718) --- src/DateTimePickerModal.ios.js | 2 +- src/utils.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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) ); };