it should be to have this feature. In addition, it should have a previous/next (week, month) on top for easily selection.
Hi there, I found an workaround solution to collapse the agenda when it is expanded. You can implement as below:
Hope it help for all.
Hi there, I found an workaround solution to collapse the agenda when it is expanded. You can implement as below:
- add a close icon to calendars list
- add a ref on Agenda JSX
- call this method when press on close icon this.agenda._chooseDayFromCalendar(selectedDate)
Hope it help for all.
ref={(ref) => this._Agenda = ref}
/>
this._Agenda.chooseDay(this._Agenda.state.selectedDay);
This is work for me
how can we close calendar if it is open in react native calendar(Agenda)
how can we close calendar if it is open in react native calendar(Agenda)
<Agenda
onCalendarToggled={(calendarOpened) => {this.setState({calendarOpened})}}
/>
if(this.state.calendarOpened){
this._Agenda.chooseDay(this._Agenda.state.selectedDay);
}else{
this.props.navigation.goBack();
}
@veedeo Please see comment on PR #655
Most helpful comment
Hi there, I found an workaround solution to collapse the agenda when it is expanded. You can implement as below:
Hope it help for all.