File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -341,9 +341,12 @@ class DatePicker extends Component {
341
341
cancelBtnTestID,
342
342
confirmBtnTestID,
343
343
allowFontScaling,
344
- locale
344
+ locale,
345
+ textColor,
345
346
} = this . props ;
346
347
348
+ const DatePickerIOSComponent = this . props . iOSDatePickerComponent || DatePickerIOS ;
349
+
347
350
const dateInputStyle = [
348
351
Style . dateInput , customStyles . dateInput ,
349
352
disabled && Style . disabled ,
@@ -391,12 +394,15 @@ class DatePicker extends Component {
391
394
style = { [ Style . datePickerCon , { height : this . state . animatedHeight } , customStyles . datePickerCon ] }
392
395
>
393
396
< View pointerEvents = { this . state . allowPointerEvents ? 'auto' : 'none' } >
394
- < DatePickerIOS
397
+ < DatePickerIOSComponent
395
398
date = { this . state . date }
399
+ value = { this . state . date }
400
+ textColor = { textColor }
396
401
mode = { mode }
397
402
minimumDate = { minDate && this . getDate ( minDate ) }
398
403
maximumDate = { maxDate && this . getDate ( maxDate ) }
399
404
onDateChange = { this . onDateChange }
405
+ onChange = { this . onDateChange }
400
406
minuteInterval = { minuteInterval }
401
407
timeZoneOffsetInMinutes = { timeZoneOffsetInMinutes ? timeZoneOffsetInMinutes : null }
402
408
style = { [ Style . datePicker , customStyles . datePicker ] }
You can’t perform that action at this time.
0 commit comments