From 0869fd0197a621123ae16e183965dd05fdf4521d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danilo=20B=C3=BCrger?= Date: Mon, 31 Aug 2020 13:56:43 +0200 Subject: [PATCH] Fix default modalPresentationStyle on < iOS 13 (#6494) Changes the default from overFullScreen to fullScreen on iOS 12 and below. According to https://github.com/wix/react-native-navigation/pull/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 Co-authored-by: Guy Carmeli --- lib/ios/RNNConvert.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ios/RNNConvert.m b/lib/ios/RNNConvert.m index e638c42063c..4130a04ece7 100644 --- a/lib/ios/RNNConvert.m +++ b/lib/ios/RNNConvert.m @@ -6,7 +6,7 @@ + (UIModalPresentationStyle)defaultModalPresentationStyle { if (@available(iOS 13.0, *)) { return UIModalPresentationAutomatic; } else { - return UIModalPresentationOverFullScreen; + return UIModalPresentationFullScreen; } }