Skip to content

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

Open
@HarlessJM

Description

@HarlessJM

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions