File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ import DatePickerModal from './DatePickerModal'
55import { useLatest } from '../utils'
66import type { DatePickerInputProps } from './DatePickerInput.shared'
77import DatePickerInputWithoutModal from './DatePickerInputWithoutModal'
8- import { StyleProp , ViewStyle } from 'react-native'
8+ import { Platform , StyleProp , ViewStyle } from 'react-native'
99
1010function DatePickerInput (
1111 {
1212 withModal = true ,
1313 calendarIcon = 'calendar' ,
14- animationType = ' slide',
14+ animationType = Platform . select ( { web : 'none' , default : ' slide' } ) ,
1515 presentationStyle = 'overFullScreen' ,
1616 ...rest
1717 } : DatePickerInputProps ,
@@ -80,6 +80,7 @@ function DatePickerInput(
8080 disableStatusBarPadding = { disableStatusBarPadding ?? false }
8181 animationType = { animationType }
8282 presentationStyle = { presentationStyle }
83+ label = { rest . label as any }
8384 />
8485 ) : null
8586 }
You can’t perform that action at this time.
0 commit comments