Open
Description
Describe the bug
The inline selector AM/PM wheel has inconsistent response times for onChangeDate and onStateChange. This can be easily measured by watching onStateChange's response after the wheel has come to a full stop which in some cases can be more than 2 seconds.
Expected behavior
When the AM/PM wheel stops moving, onDateChange fires as does onStateChange, not seconds after.
To Reproduce
Used the existing sample to show.
const Picker = () => {
render (
<DatePicker
date={new Date()}
onStateChange={state => console.log("Next State", state)}
onDateChange={date => console.log("Selected Date", date)}
is24hourSource={"locale"}
/>
);
}
Smartphone (please complete the following information):
- OS: Android API 34
- React Native version 0.72.12
- react-native-date-picker version 5.0.4
Metadata
Metadata
Assignees
Labels
No labels