Skip to content

Commit c67cfe2

Browse files
authored
Merge pull request #353 from SoyDiego/fix-warning-date-picker-input
Fix presentationStyle warning
2 parents 01b13e6 + da5ea66 commit c67cfe2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Date/DatePickerModal.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ export function DatePickerModal(
6666
default: 'slide',
6767
})
6868

69-
const isTransparent = presentationStyle === 'pageSheet' ? false : true
69+
const isTransparent =
70+
presentationStyle === 'pageSheet' || presentationStyle === 'fullScreen'
71+
? false
72+
: true
7073
const headerBackgroundColor = useHeaderBackgroundColor()
7174
const insets = useSafeAreaInsets()
7275

0 commit comments

Comments
 (0)