react-native-iphone-x-helper
react-native-iphone-x-helper copied to clipboard
iphone x detection breaks if Zoomed mode is enabled.
Enable zoomed mode on iPhone x and try to use the library.
I am using iPhone 12
Zoomed mode.
isIphoneX: false Dimensions.get('window'): {"fontScale": 1, "height": 693, "scale": 3, "width": 320}
Standard mode
isIphoneX: true Dimensions.get('window'): {"fontScale": 1, "height": 844, "scale": 3, "width": 390}
I think it's not a bug because in zoomed mode screen transforms to SE 1th generation screen without safe areas and so on