Skip to content

Commit

Permalink
feat: Support iPhone 14 Pro & Pro Max safe area bottom inset (#718)
Browse files Browse the repository at this point in the history
  • Loading branch information
kolking authored Aug 18, 2023
1 parent fb06dac commit cab8968
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DateTimePickerModal.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ const pickerStyles = StyleSheet.create({
modal: {
justifyContent: "flex-end",
margin: 10,
marginBottom: isIphoneX() ? 34 : 10,
},
container: {
borderRadius: BORDER_RADIUS,
Expand Down Expand Up @@ -341,7 +342,6 @@ export const cancelButtonStyles = StyleSheet.create({
button: {
borderRadius: BORDER_RADIUS,
height: 57,
marginBottom: isIphoneX() ? 20 : 0,
justifyContent: "center",
},
buttonLight: {
Expand Down
6 changes: 5 additions & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
};

0 comments on commit cab8968

Please sign in to comment.