Skip to content

Commit 9ef5971

Browse files
committed
add animationType to DatePickerInput
1 parent cebf3a6 commit 9ef5971

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Date/DatePickerInput.shared.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export type DatePickerInputProps = {
2525
onChangeText?: (text: string | undefined) => void
2626
inputEnabled?: boolean
2727
disableStatusBarPadding?: boolean
28+
animationType?: 'slide' | 'fade' | 'none'
2829
} & Omit<
2930
React.ComponentProps<typeof TextInput>,
3031
'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
{
1313
withModal = true,
1414
calendarIcon = 'calendar',
15+
animationType = 'slide',
1516
...rest
1617
}: DatePickerInputProps,
1718
ref: any
@@ -76,6 +77,7 @@ function DatePickerInput(
7677
endYear={endYear ?? 2200}
7778
inputEnabled={inputEnabled}
7879
disableStatusBarPadding={disableStatusBarPadding ?? false}
80+
animationType={animationType}
7981
/>
8082
) : null
8183
}

0 commit comments

Comments
 (0)