()
| 1 | import { Dimensions, Platform } from "react-native"; |
| 2 | |
| 3 | export const isIphoneX = () => { |
| 4 | const { height, width } = Dimensions.get("window"); |
| 5 | |
| 6 | return ( |
| 7 | Platform.OS === "ios" && |
| 8 | !Platform.isPad && |
| 9 | !Platform.isTVOS && |
| 10 | (height === 780 || |
| 11 | width === 780 || |
| 12 | height === 812 || |
| 13 | width === 812 || |
| 14 | height === 844 || |
| 15 | width === 844 || |
| 16 | height === 852 || |
| 17 | width === 852 || |
| 18 | height === 896 || |
| 19 | width === 896 || |
| 20 | height === 926 || |
| 21 | width === 926 || |
| 22 | height === 932 || |
| 23 | width === 932) |
| 24 | ); |
| 25 | }; |
no outgoing calls
no test coverage detected
searching dependent graphs…