Android: onDateChange callback in not being called for `type` time
See original GitHub issueBug description
Currently onDateChange
callback is being called only for date
and datetime
.
But for time
nothing happens and callback not being called
See code:
handleDatePicked = (date) => {
// some code
log('handleDatePicked date changed', date);
};
render() {
return (
<DatePicker
date={new Date()}
mode={'time'}
onDateChange={this.handleDatePicked}
locale={'en_GB'}
/>
);
}
Expected behavior
onDateChange
to be called for each mode time
, date
, datetime
Android emulator - Nexus_5X_API_28_x86 :
- OS: [Android]
- React Native version [e.g. 0.60.4]
- react-native-date-picker version [e.g. 2.7.0]
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Why OnDateChangeListener callback is not being called on ...
Try This code it is working.. // Creating dialog @Override protected Dialog onCreateDialog(int id) { c = Calendar.
Read more >CalendarView.OnDateChangeListener - Android Developers
... int month, int dayOfMonth). Called upon change of the selected day. ... No recommendations at this time. Try signing in to your...
Read more >DatePickerIOS - React Native
onDateChange . Date change handler. This is called when the user changes the date or time in the UI. The first and only...
Read more >react-native-calendar-picker - npm
Callback when a date is selected. Returns Moment date as first param; START_DATE or END_DATE as second param. onMonthChange, Function ...
Read more >Callback in Native module not being called? : r/reactnative
I'm working on an app for payment machines that use Android (7.1), with it you are able to pay with credit card. The...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
After investigation, I found that
onDateChange
is not being called whenlocale
param is specified when mode:time
Thanks for reporting this, I will have a look at it!