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.21k stars 338 forks source link

DatePicker Picker cancel button event not call at very first app installed. #790

Closed Qurat-ul-ainn closed 5 months ago

Qurat-ul-ainn commented 6 months ago

When the app is first installed, the Model Picker cancel button event may not be triggered. Additionally, if the user opens the picker but cancels without selecting a date, the picker model closes, but the cancel button code doesn't execute. Subsequent attempts to open the picker fail until the app is force-refreshed. This issue affects the functionality of the cancel button and requires app refresh to resolve

henninghall commented 5 months ago

Please include the issue template, and I will be able to take a look at this.

himanshuLB commented 4 months ago

@henninghall This still does not work in android.

        onCancel={() => {
          console.log('cancel is pressed');
          setOpen(false);
        }}

This is not fired in some cases.

Qurat-ul-ainn commented 4 months ago

@henninghall This still does not work in android.

        onCancel={() => {
          console.log('cancel is pressed');
          setOpen(false);
        }}

This is not fired in some cases.

@henninghall This still does not work in android.

        onCancel={() => {
          console.log('cancel is pressed');
          setOpen(false);
        }}

This is not fired in some cases.

yeah its not working i make my customise DateTime picker