react-native-ui-lib icon indicating copy to clipboard operation
react-native-ui-lib copied to clipboard

DateTimePicker alway WARN on console

Open jedsada-sw opened this issue 2 years ago • 7 comments

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

image

jedsada-sw avatar Jan 20 '23 08:01 jedsada-sw

remove migrateTextField and use renderInput

boboxiaodd avatar Jan 31 '23 09:01 boboxiaodd

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}}
                />
              )}
            />

vuhongson-01 avatar Feb 04 '23 14:02 vuhongson-01

Adding renderInput solved the problem. I suggest closing this issue.

uztbt avatar Mar 28 '23 02:03 uztbt

renderInput does fix it, but there is probably and underlying issue here with the rendering of the default input that needs to be addressed

robpearmain avatar Apr 14 '23 16:04 robpearmain

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.

stale[bot] avatar Jun 14 '23 23:06 stale[bot]

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 

wdospinal avatar Jul 28 '23 02:07 wdospinal

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.

stale[bot] avatar Oct 15 '23 06:10 stale[bot]