From b1affebcbfa6df53dde2132a2a37ace0f949ec73 Mon Sep 17 00:00:00 2001 From: ahmedGaber93 Date: Tue, 18 Apr 2023 23:17:48 +0200 Subject: [PATCH] add padding bottom to base modal --- src/styles/StyleUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/StyleUtils.js b/src/styles/StyleUtils.js index e35bc940f7e0..b113feb07d3c 100644 --- a/src/styles/StyleUtils.js +++ b/src/styles/StyleUtils.js @@ -424,7 +424,7 @@ function getModalPaddingStyles({ }) { // use fallback value for safeAreaPaddingBottom to keep padding bottom consistent with padding top. // More info: issue #17376 - const safeAreaPaddingBottomWithFallback = insets.bottom === 0 ? modalContainerStylePaddingTop : safeAreaPaddingBottom; + const safeAreaPaddingBottomWithFallback = insets.bottom === 0 ? (modalContainerStylePaddingTop || 0) : safeAreaPaddingBottom; return { marginTop: (modalContainerStyleMarginTop || 0) + (shouldAddTopSafeAreaMargin ? safeAreaPaddingTop : 0), marginBottom: (modalContainerStyleMarginBottom || 0) + (shouldAddBottomSafeAreaMargin ? safeAreaPaddingBottomWithFallback : 0),