Created
April 12, 2018 07:57
-
-
Save Royovo/1ea54bee8969831bba7b853a948d08ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Dimensions, Platform } from 'react-native'; | |
export const isIphoneX = () => { | |
const { height, width } = Dimensions.get('window'); | |
return Platform.OS === 'ios' && (height === 812 || width === 812) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment