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
  • Loading branch information
luacmartins authored Jun 13, 2024
2 parents f9a86bc + 8bbcc7f commit 393971c
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 393971c

Please sign in to comment.