react-native-iphone-x-helper icon indicating copy to clipboard operation
react-native-iphone-x-helper copied to clipboard

iphone x detection breaks if Zoomed mode is enabled.

Open punksta opened this issue 3 years ago • 2 comments

Enable zoomed mode on iPhone x and try to use the library.

IMG_71E25E5E9651-1

punksta avatar May 17 '21 14:05 punksta

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}

punksta avatar May 17 '21 14:05 punksta

I think it's not a bug because in zoomed mode screen transforms to SE 1th generation screen without safe areas and so on

lekzd avatar Jan 26 '22 16:01 lekzd