web-ridge / react-native-paper-dates

Smooth and fast cross platform Material Design date and time picker for React Native Paper
https://www.reactnativepaperdates.com
MIT License
642 stars 166 forks source link

The format is not applied in the range edition fields, nor are states updated #233

Open JohabarWil opened 1 year ago

JohabarWil commented 1 year ago

Hi,

Version 0.11.10 is being used when implementing react-native-paper-dates in range mode, when entering to edit dates manually, the format is not applied, nor is the status of the entered dates updated

It was expected that when entering the dates in each field, the defined format would be applied, at the same time the status of the dates to save would be updated

NOTE: This was going to happen after migrating version of react-native-paper-dates from 0.9.2 to 0.11.10 (using react-native-paper V5.1.2)

Plays on iOS 12 and 16, Android 12,

configuration example

<DatePickerModal locale={'en'} mode="range" visible={openPicker} onDismiss={onDismiss} startDate={range.startDate} endDate={range.endDate} onConfirm={confirmDate} disableStatusBar={Platform.OS !== 'ios'} validRange={{ startDate: new Date(clientCreationDate), endDate: new Date(), }} uppercase={false} // optional, default is true dateMode={'start'} />

bug-range

Can someone help me? something you are doing wrong?

iM-GeeKy commented 1 year ago

PRs welcome!