Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support iPhone 14 Pro & Pro Max safe area bottom inset #718

Merged
merged 3 commits into from
Aug 18, 2023

Conversation

kolking
Copy link
Contributor

@kolking kolking commented Aug 17, 2023

Overview

  • Added missing iPhone 14 Pro & iPhone 14 Pro Max dimensions to the isIphoneX() method.
  • The marginBottom is applied to modal styles rather than the cancel button styles. This allows overriding the bottom margin through modalStyleIOS.
  • The margin value is updated to 34pt which is the proper size of the iOS bottom inset. Reference: iPhone 14 Screen Sizes

Test Plan

The bottom inset of 34pt should appear for iPhone 14 Pro and iPhone 14 Pro Max. Users should be able to manually update the inset value through modalStyleIOS prop.

@kolking kolking mentioned this pull request Aug 17, 2023
@mmazzarolo
Copy link
Owner

Hey @kolking , thanks, this makes sense sense to me 👍

@mmazzarolo mmazzarolo merged commit cab8968 into mmazzarolo:master Aug 18, 2023
2 checks passed
@mmazzarolo mmazzarolo mentioned this pull request Aug 18, 2023
github-actions bot pushed a commit that referenced this pull request Aug 18, 2023
# [17.1.0](v17.0.0...v17.1.0) (2023-08-18)

### Features

* Support iPhone 14 Pro & Pro Max safe area bottom inset ([#718](#718)) ([cab8968](cab8968))
@github-actions
Copy link

🎉 This PR is included in version 17.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants