From 8f7ca64e64cf67975a21151563f9025af9020e4f Mon Sep 17 00:00:00 2001 From: Rupesh Chaudhari <30570616+hrupesh@users.noreply.github.com> Date: Sat, 29 Jul 2023 19:33:01 +0530 Subject: [PATCH] bugfix: Added heights for iPhone 14 Pro and Max in `isIphoneX` helper method --- src/utils/devices.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/utils/devices.ts b/src/utils/devices.ts index 79ab74f1..b57f0a76 100644 --- a/src/utils/devices.ts +++ b/src/utils/devices.ts @@ -14,7 +14,14 @@ export const isIphoneX = height === 896 || width === 896 || height === 926 || - width === 926); + width === 926 || + // iPhone 14 Pro Viewport Height + height === 852 || + width === 852 || + //iPhone 14 Pro Max Viewport Height + height === 932 || + width === 932 + ); export const isAndroid = Platform.OS === 'android'; export const isWeb = Platform.OS === 'web';