react-native-iphone-x-helper
react-native-iphone-x-helper copied to clipboard
Support iPhone12, 12 Pro, 12 Pro Max, 12 Mini, 13, 13 Pro, 13 Pro Max, 13 Mini, 14, 14 Plus, 14 Pro, 14 Pro Max
Feat: Support All Devices except iPhone11 & iPhone Xr
StatusBarHeight | Devices |
---|---|
20 | Others |
44 | iPhoneX, Xs, Xs Max, 11 Pro, 11 Pro Max |
47 | iPhone12, 12 Pro, 12 Pro Max, 13, 13 Pro, 13 Pro Max, 14, 14 Plus |
48(Not Supported Now) | iPhone11, Xr |
50 | iPhone12 Mini, 13 Mini |
59 | iPhone14 Pro、14 Pro Max |
Fix: Dimensions.get("window")
's width & height is not correct sometimes when Dimensions.get("srceen")
is correct
Feat: remove getStatusBarHeight
param safe
,which is useless in actual use
looks good. 👍🏼
Thanks a lot for the fix. Any chance to have it released soon?
Thanks a lot for the fix. Any chance to have it released soon?
Any one can help merge❓
Looking forward for this merge 👍
Waiting for merge this also ;)
@ptelad ?
we're still waiting!)
Waiting for merge this also !!
Waiting for merge as well!
I guess this repository is dead🥲 but many community packages include it's has dependency (for example react-navigation). Maybe who known alternative or can to contact to author and get access to publish new version.
Also we can create organizations how like https://github.com/react-native-device-info/react-native-device-info and continue support. But I think it's deprecated cause we can use hasNotch method from device-info instead isIPhoneX.
@ptelad what do you think about it?
Thank you, i use patch-package tool created patch to fix my issue.
you can use fork = react-native-iphone-screen-helper