Hello, does ExpandableCalendar support all Calendar props? onDayPress seems doesnt work.
You can use
<CalendarProvider
date={current}
onDateChanged={this.onDateChange}
onMonthChange={this.monthChanged}
key={current}
style={[{flex: 0}]}
>
then on the function can catch updated source
onDateChange(date, updateSource) {
console.log(updateSource, ' NOTE UPDATE SOURCE');
}
@farhansamu21
ExpandableCalendar supports onDayPress.
If it doesn't work, please open a bug and upload your code.
https://github.com/wix/react-native-calendars/blob/master/src/expandableCalendar/index.js#L48
https://github.com/wix/react-native-calendars/blob/master/src/calendar-list/index.js#L28
https://github.com/wix/react-native-calendars/blob/master/src/calendar/index.js#L55
You can use
<CalendarProvider date={current} onDateChanged={this.onDateChange} onMonthChange={this.monthChanged} key={current} style={[{flex: 0}]} >then on the function can catch updated source
onDateChange(date, updateSource) { console.log(updateSource, ' NOTE UPDATE SOURCE'); }
Thanks man, this works perfectly.
@farhansamu21
ExpandableCalendarsupportsonDayPress.
If it doesn't work, please open a bug and upload your code.https://github.com/wix/react-native-calendars/blob/master/src/expandableCalendar/index.js#L48
https://github.com/wix/react-native-calendars/blob/master/src/calendar-list/index.js#L28
https://github.com/wix/react-native-calendars/blob/master/src/calendar/index.js#L55
onDayPress Wont respond when we wrap ExpandableCalendar with CalendarProvider component.
Most helpful comment
You can use
then on the function can catch updated source
onDateChange(date, updateSource) { console.log(updateSource, ' NOTE UPDATE SOURCE'); }