diff --git a/src/components/dateTimePicker/view/dateTimePickerStyles.js b/src/components/dateTimePicker/view/dateTimePickerStyles.js index 4b7d9a88e..c4673013b 100644 --- a/src/components/dateTimePicker/view/dateTimePickerStyles.js +++ b/src/components/dateTimePicker/view/dateTimePickerStyles.js @@ -1,9 +1,6 @@ import EStyleSheet from 'react-native-extended-stylesheet'; export default EStyleSheet.create({ - btnConfirm: { - color: '$iconColor', - }, btnTextCancel: { color: '$iconColor', }, diff --git a/src/components/dateTimePicker/view/dateTimePickerView.js b/src/components/dateTimePicker/view/dateTimePickerView.js index 824f89a95..09b513b18 100644 --- a/src/components/dateTimePicker/view/dateTimePickerView.js +++ b/src/components/dateTimePicker/view/dateTimePickerView.js @@ -56,17 +56,16 @@ class DateTimePickerView extends PureComponent { if (type === 'date-time') { _type = date ? 'time' : 'date'; _format = date ? 'HH:MM' : 'YYYY-MM-DD'; - _minDate = date ? null : moment(); + _minDate = date ? null : moment().format('YYYY-MM-DD'); } else { _type = type; _format = type === 'date' ? 'YYYY-MM-DD' : 'HH:MM'; - _minDate = type === 'date' ? moment() : null; + _minDate = type === 'date' ? moment().format('YYYY-MM-DD') : null; } return (