Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HarlessJM opened this issue Jul 15, 2024 · 1 comment
Open

Comments

@HarlessJM
Copy link

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
@maneeshsingh27
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants