-
Notifications
You must be signed in to change notification settings - Fork 395
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
inconsistancy between onDateChange, onChange in ts and js. #611
Comments
👋 Yeah, we should definitely update the type definitions. Not sure if we want to expose the original event in the signature though. |
@mmazzarolo thank you for you question. I am using it to react on date change asap. In my case submit button is not used. That is my UX team decision. User selects date and clicks outside of popup. |
Perhaps you want to keep type definition of props in your project? |
🎉 This issue has been resolved in version 13.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
onDateChange
is never get called on ios.onChange type is the following:
onChange?: (event: Event, date?: Date) => void;
https://github.com/react-native-datetimepicker/datetimepicker/blob/1fb6a2e1c4aca448172e240c4450eb1b48bf16f5/src/index.d.ts#L36
however this library is calling it like this:
react-native-modal-datetime-picker/src/DateTimePickerModal.ios.js
Line 95 in eebaaae
Versions
Description
Reproducible Demo
pass
and see what happens on ios :)
The text was updated successfully, but these errors were encountered: