Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Dimensions, Platform } from 'react-native';
- export const isIphoneX = () => {
- const { height, width } = Dimensions.get('window');
- return Platform.OS === 'ios' && (height === 812 || width === 812)
- }
Add Comment
Please, Sign In to add comment