From 6ed812b741e1746c75985d40e6335c779e8d110e Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Thu, 30 May 2019 14:40:15 +0300 Subject: [PATCH] Fixed editor isssues --- src/components/dateTimePicker/view/dateTimePickerStyles.js | 3 --- src/components/dateTimePicker/view/dateTimePickerView.js | 5 ++--- .../editorElements/titleArea/view/titleAreaView.js | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) 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 (