We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug We have multiple time pickers with different min/max configurations. For example:
After doing some debugging it seems the issue is with the following code in RNDatePicker.mm:
// maximumDate if(oldViewProps.maximumDate != newViewProps.maximumDate) { [_picker setMaximumDate: unixMillisToNSDate(newViewProps.maximumDate)]; } // minimumDate if(oldViewProps.minimumDate != newViewProps.minimumDate) { [_picker setMinimumDate: unixMillisToNSDate(newViewProps.minimumDate)]; }
It seems that when interacting with time picker B:
maximumDate={null}
We currently applied the following patch, which works for us:
// maximumDate if(oldViewProps.maximumDate != newViewProps.maximumDate) { if(newViewProps.maximumDate == 0) { [_picker setMaximumDate: nil]; } else { [_picker setMaximumDate: unixMillisToNSDate(newViewProps.maximumDate)]; } } // minimumDate if(oldViewProps.minimumDate != newViewProps.minimumDate) { if(newViewProps.minimumDate == 0) { [_picker setMinimumDate: nil]; } else { [_picker setMinimumDate: unixMillisToNSDate(newViewProps.minimumDate)]; } }
Expected behavior You can interact with multiple time pickers that have different min/max configurations.
Smartphone:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
We have multiple time pickers with different min/max configurations. For example:
After doing some debugging it seems the issue is with the following code in RNDatePicker.mm:
It seems that when interacting with time picker B:
maximumDate={null}
We currently applied the following patch, which works for us:
Expected behavior
You can interact with multiple time pickers that have different min/max configurations.
Smartphone:
The text was updated successfully, but these errors were encountered: