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

Fix default modalPresentationStyle on iOS 13 #5709

Merged
merged 11 commits into from
Dec 2, 2019
Merged

Conversation

yogevbd
Copy link
Collaborator

@yogevbd yogevbd commented Dec 2, 2019

• Resolve the default modalPresentationStyle according to iOS version.
In iOS 13 and above, the default presentation style for each view controller is resolved by the system.
Below iOS 13, the default presentation style is always fullScreen presentation style.
• Add the ability to control swipe modal to dismiss when the presentation style sets to pageSheet using options.modal.swipeToDismiss

@yogevbd yogevbd merged commit 659a42c into master Dec 2, 2019
@yogevbd yogevbd deleted the fixModalPresentationStyle branch December 2, 2019 14:19
vshkl pushed a commit to vshkl/react-native-navigation that referenced this pull request Feb 5, 2020
* Set  as default modalPresentationStyle

* Sets the system default modalPresentationStyle

* Fix tests

* Fix unit tests

* Fix unit tests

* Add modal.swipeToDismiss option
danilobuerger added a commit to danilobuerger/react-native-navigation that referenced this pull request Aug 21, 2020
Changes the default from overFullScreen to fullScreen on iOS 12 and below.

According to wix#5709
> Below iOS 13, the default presentation style is always fullScreen presentation style.

Also looking at the blame it was indeed "fullScreen" not "overFullScreen"

This is also inline with the docs https://wix.github.io/react-native-navigation/api/options-root#modalpresentationstyle

> The default presentation style is different on each platform.
> iOS 12 and below - fullScreen
> iOS 13 and above - pageSheet
yogevbd added a commit that referenced this pull request Aug 31, 2020
Changes the default from overFullScreen to fullScreen on iOS 12 and below.

According to #5709
> Below iOS 13, the default presentation style is always fullScreen presentation style.

Also looking at the blame it was indeed "fullScreen" not "overFullScreen"

This is also inline with the docs https://wix.github.io/react-native-navigation/api/options-root#modalpresentationstyle

> The default presentation style is different on each platform.
> iOS 12 and below - fullScreen
> iOS 13 and above - pageSheet

Co-authored-by: Yogev Ben David <yogev132@gmail.com>
Co-authored-by: Guy Carmeli <guyca@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants