You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Checkout the repo, run the app via yarn ios or yarn android. You will the first screen. Press "Open DateTimePicker" and submit any date. The result will be shown on the screen:
Date on confirm: Thu Jun 25 2026 12:53:47 GMT+0200
Date on hide: true
The text was updated successfully, but these errors were encountered:
Environment
Platforms
Both iOS and Android
Versions
17.1.0
7.6.2
0.73.4
18.2.0
Description
onHide
callback returnsDate
but this date seems to be invalid and casted asboolean
?Based on description of the callback:
I expected the same
Date
object as the one returned viaonConfirm
. However, based on logs they are different. For example:Is it an issue or is it an expected behaviour? Thanks in advance :)
Reproducible Demo
Here is a repo with demo: https://github.com/ElviraBurchik/react-native-modal-datetime-picker-issue-on-hide
Checkout the repo, run the app via
yarn ios
oryarn android
. You will the first screen. Press "Open DateTimePicker" and submit any date. The result will be shown on the screen:The text was updated successfully, but these errors were encountered: