-
Notifications
You must be signed in to change notification settings - Fork 138
iPhone 12 Pro Max not being recognized #32
Comments
Seeing the same thing + 1 |
Are you using the latest 1.3.0? |
Yup, using |
What value are you getting from Dimensions.get('window').width and height? |
@ptelad just tested, |
1.3.1 resolved for me as well. |
@castrolem The original comment points this out as a problem but semantically, based on the library name, this would be correct behavior. The iPhone 12 is not an iPhone X. This gave me a lot of confusion just now while updating my orgs legacy app. Maybe you could consider adding a custom isIphone12() function? |
@daaashleywch I agree, the name of the library hasn't aged well, but the description of the library is accurate
And the 12 Pro Max is a notched iPhone, previous versions (before 1.3.1) worked with other 12 versions, just the Pro Max had the issue, no longer an issue after 1.3.1. 👍 |
Issue
We have an app that has support for all iPhone sizes, and we use the plug in to set a consistent
marginTop
layout from the notch on one of our UI components.How to reproduce
create-react-native-app
project.console.log(isIphoneX())
onApp.js
.false
.The text was updated successfully, but these errors were encountered: