Skip to content

Commit

Permalink
fix: added devices support for iPhone 12 devices (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
harrigee authored Dec 3, 2020
1 parent 5880efc commit e800294
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/utils/devices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ const { width, height } = Dimensions.get('window');

export const isIos = Platform.OS === 'ios';
export const isIphoneX =
isIos && (height === 812 || width === 812 || height === 896 || width === 896);
isIos &&
(height === 780 || width === 780 ||
height === 812 || width === 812 ||
height === 844 || width === 844 ||
height === 896 || width === 896 ||
height === 926 || width === 926);
export const isAndroid = Platform.OS === 'android';
export const isWeb = Platform.OS === 'web';

0 comments on commit e800294

Please sign in to comment.