Skip to content

Commit 10eb9b5

Browse files
authored
Merge pull request #341 from shahraizali/master
Added prop presentationStyle in DatePickerInput
2 parents 58755d0 + 44b39ce commit 10eb9b5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/Date/DatePickerInput.shared.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ export type DatePickerInputProps = {
2626
inputEnabled?: boolean
2727
disableStatusBarPadding?: boolean
2828
animationType?: 'slide' | 'fade' | 'none'
29+
presentationStyle?:
30+
| 'fullScreen'
31+
| 'pageSheet'
32+
| 'formSheet'
33+
| 'overFullScreen'
2934
} & Omit<
3035
React.ComponentProps<typeof TextInput>,
3136
'value' | 'onChange' | 'onChangeText' | 'inputMode'

src/Date/DatePickerInput.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function DatePickerInput(
1212
withModal = true,
1313
calendarIcon = 'calendar',
1414
animationType = 'slide',
15+
presentationStyle = 'fullScreen',
1516
...rest
1617
}: DatePickerInputProps,
1718
ref: any
@@ -78,6 +79,7 @@ function DatePickerInput(
7879
inputEnabled={inputEnabled}
7980
disableStatusBarPadding={disableStatusBarPadding ?? false}
8081
animationType={animationType}
82+
presentationStyle={presentationStyle}
8183
/>
8284
) : null
8385
}

0 commit comments

Comments
 (0)