mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 04:41:43 +03:00
Fixed editor isssues
This commit is contained in:
parent
bfa2d89be6
commit
6ed812b741
@ -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',
|
||||||
},
|
},
|
||||||
|
@ -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}
|
||||||
|
@ -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,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user