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';
export default EStyleSheet.create({
btnConfirm: {
color: '$iconColor',
},
btnTextCancel: {
color: '$iconColor',
},

View File

@ -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 (
<DatePicker
style={styles.picker}
date={date}
mode={_type}
format={_format}
minDate={_minDate}

View File

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