Open jedsada-sw opened 1 year ago
remove migrateTextField
and use renderInput
add renderInput
to solve this problem
<DateTimePicker
title={'Chọn ngày sinh'}
placeholder={birthday}
onChange={v => {
console.log(v);
}}
value={new Date()}
mode={'DATE'}
dateFormat={'DD.MM.YYYY'}
renderInput={() => (
<FontAwesomeIcon
icon={faCalendarDay}
style={{marginLeft: 6, color: app_color.color1}}
/>
)}
/>
Adding renderInput solved the problem. I suggest closing this issue.
renderInput does fix it, but there is probably and underlying issue here with the rendering of the default input that needs to be addressed
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I dont use migrateTextField still have the same problem
<DateTimePicker disabled={disabled} testID="timePicker" value={date} mode={'time'} onChange={onChange} timeFormat="HH:mm" color={Colors.white} is24Hour style={styles.date} />
WARN The new TextField implementation does not support the 'expandable' prop. This prop will not be supported anymore
at TextField
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
RNUILIB version : 6.28.0 Warn Message : WARN The new TextField implementation does not support the 'expandable' prop. This prop will not be supported anymore