wix / react-native-ui-lib

UI Components Library for React Native
https://wix.github.io/react-native-ui-lib/
MIT License
6.4k stars 701 forks source link

DateTimePicker alway WARN on console #2429

Open jedsada-sw opened 1 year ago

jedsada-sw commented 1 year ago

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

boboxiaodd commented 1 year ago

remove migrateTextField and use renderInput

vuhongson-01 commented 1 year ago

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}}
                />
              )}
            />
uztbt commented 1 year ago

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

robpearmain commented 1 year ago

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

stale[bot] commented 1 year ago

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.

wdospinal commented 1 year ago

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 
stale[bot] commented 10 months ago

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.