File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
demo/src/screens/componentScreens
src/components/dateTimePicker Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export default class DateTimePickerScreen extends Component {
70
70
containerStyle = { { marginVertical : 20 } }
71
71
title = { 'Date' }
72
72
placeholder = { 'Select a date' }
73
- renderExpandableInput = { this . renderCustomInput }
73
+ renderInput = { this . renderCustomInput }
74
74
dateFormat = { 'MMM D, YYYY' }
75
75
// value={new Date('2015-03-25T12:00:00-06:30')}
76
76
/>
Original file line number Diff line number Diff line change @@ -274,11 +274,13 @@ class DateTimePicker extends Component {
274
274
275
275
render ( ) {
276
276
const textInputProps = TextField . extractOwnProps ( this . props ) ;
277
+ const { renderInput} = this . props ;
277
278
278
279
return (
279
280
< TextField
280
281
{ ...textInputProps }
281
282
value = { this . getStringValue ( ) }
283
+ renderExpandableInput = { renderInput }
282
284
expandable
283
285
renderExpandable = { this . renderExpandable }
284
286
onToggleExpandableModal = { this . onToggleExpandableModal }
You can’t perform that action at this time.
0 commit comments