Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Added new iPhone XR/XS Max screen width and height #110

Merged
merged 2 commits into from
Oct 8, 2018

Conversation

davidmpr
Copy link
Contributor

@davidmpr davidmpr commented Oct 8, 2018

Added new 2018 iPhones screen size in order to be taken into account when checking if device 'isIPhoneX'.

Before changes

screenshot 2018-10-08 at 11 38 50

After changes

screenshot 2018-10-08 at 11 30 20

Copy link
Owner

@timomeh timomeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you! If you remove the semicolons, I'll be happy to merge it.

@@ -2,6 +2,8 @@ import { Dimensions, Platform } from 'react-native'

const IPHONE_X_WIDTH = 375
const IPHONE_X_HEIGHT = 812
const IPHONE_XR_XSMAX_WIDTH = 414;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please remove the semicolons in line 5 and 6? This way we have a consistent code style everywhere.

@timomeh
Copy link
Owner

timomeh commented Oct 8, 2018

Ignore the failing codeclimate check. Codeclimate is a bit too picky here imo

@davidmpr
Copy link
Contributor Author

davidmpr commented Oct 8, 2018

Removed semicolons on last commit 👍

@timomeh timomeh merged commit d9c636f into timomeh:master Oct 8, 2018
@timomeh
Copy link
Owner

timomeh commented Oct 8, 2018

Thank you very much! I'll make a release later this day.

@davidmpr
Copy link
Contributor Author

davidmpr commented Oct 8, 2018

Thank you for this awesome work!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants