Fixed editor isssues

This commit is contained in:
Mustafa Buyukcelebi 2019-05-30 14:40:15 +03:00
parent bfa2d89be6
commit 6ed812b741
3 changed files with 3 additions and 6 deletions

View File

@ -1,9 +1,6 @@
import EStyleSheet from 'react-native-extended-stylesheet'; import EStyleSheet from 'react-native-extended-stylesheet';
export default EStyleSheet.create({ export default EStyleSheet.create({
btnConfirm: {
color: '$iconColor',
},
btnTextCancel: { btnTextCancel: {
color: '$iconColor', color: '$iconColor',
}, },

View File

@ -56,17 +56,16 @@ class DateTimePickerView extends PureComponent {
if (type === 'date-time') { if (type === 'date-time') {
_type = date ? 'time' : 'date'; _type = date ? 'time' : 'date';
_format = date ? 'HH:MM' : 'YYYY-MM-DD'; _format = date ? 'HH:MM' : 'YYYY-MM-DD';
_minDate = date ? null : moment(); _minDate = date ? null : moment().format('YYYY-MM-DD');
} else { } else {
_type = type; _type = type;
_format = type === 'date' ? 'YYYY-MM-DD' : 'HH:MM'; _format = type === 'date' ? 'YYYY-MM-DD' : 'HH:MM';
_minDate = type === 'date' ? moment() : null; _minDate = type === 'date' ? moment().format('YYYY-MM-DD') : null;
} }
return ( return (
<DatePicker <DatePicker
style={styles.picker} style={styles.picker}
date={date}
mode={_type} mode={_type}
format={_format} format={_format}
minDate={_minDate} minDate={_minDate}

View File

@ -19,6 +19,7 @@ export default class TitleAreaView extends Component {
super(props); super(props);
this.state = { this.state = {
text: props.value || null, text: props.value || null,
height: 0,
}; };
} }