Skip to content

Commit

Permalink
Merge pull request #43706 from bernhardoj/fix/43657-modal-screen-narrow
Browse files Browse the repository at this point in the history
[CP Staging] fix modal views are not fully shown

(cherry picked from commit 393971c)
  • Loading branch information
luacmartins authored and OSBotify committed Jun 13, 2024
1 parent 6ebfae1 commit d048973
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions src/components/Modal/BaseModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,18 +252,16 @@ function BaseModal(
avoidKeyboard={avoidKeyboard}
customBackdrop={shouldUseCustomBackdrop ? <Overlay onPress={handleBackdropPress} /> : undefined}
>
<FocusTrapForModal active={isVisible}>
<View>
<ModalContent onDismiss={handleDismissModal}>
<View
style={[styles.defaultModalContainer, modalPaddingStyles, modalContainerStyle, !isVisible && styles.pointerEventsNone]}
ref={ref}
>
<ColorSchemeWrapper>{children}</ColorSchemeWrapper>
</View>
</ModalContent>
</View>
</FocusTrapForModal>
<ModalContent onDismiss={handleDismissModal}>
<FocusTrapForModal active={isVisible}>
<View
style={[styles.defaultModalContainer, modalPaddingStyles, modalContainerStyle, !isVisible && styles.pointerEventsNone]}
ref={ref}
>
<ColorSchemeWrapper>{children}</ColorSchemeWrapper>
</View>
</FocusTrapForModal>
</ModalContent>
</ReactNativeModal>
</View>
</ModalContext.Provider>
Expand Down

0 comments on commit d048973

Please sign in to comment.