henninghall / react-native-date-picker

React Native Date Picker is datetime picker for Android and iOS. It includes date, time and datetime picker modes. The datepicker is customizable and is supporting different languages. It's written with native code to achieve the best possible look, feel and performance.
MIT License
2.24k stars 345 forks source link

[ANDROID] Inline Date selector Spinning state is inconsistent for AM/PM #843

Open HarlessJM opened 3 months ago

HarlessJM commented 3 months ago

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):

maneeshsingh27 commented 2 months ago

@HarlessJM, did you find any solution for above problem? I am also facing same issue with 5.0.4 version.