有没有一种方法可以更改模式格式react-native-datepicker
?我在文档中看不到任何内容,在回购中看不到任何问题。
https://github.com/xgfe/react-native-datepicker
一切都按预期工作,只是很好奇我是否可以先使用年份,然后是日期,然后是月份来格式化它。我不是在谈论可以使用“格式”属性设置格式的占位符。我说的是允许您选择日期的模式。
<DatePickerModal
ref={datePickerRef}
date={value}
mode="date"
placeholder="Select date"
format="YYYY-MM-DD"
maxDate={moment().subtract(18, "years")}
confirmBtnText="Confirm"
cancelBtnText="Cancel"
showIcon={false}
customStyles={dateInputStyles}
onDateChange={onDateChange}
/>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句