Skip to content
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

Collapse Agenda with Android back button/ Show Collapase knob #555

Closed
veedeo opened this issue Jul 10, 2018 · 6 comments
Closed

Collapse Agenda with Android back button/ Show Collapase knob #555

veedeo opened this issue Jul 10, 2018 · 6 comments

Comments

@veedeo
Copy link

veedeo commented Jul 10, 2018

  1. When Agenda is expanded the drag knob is hidden, is it possible to show it, to be able to collapse calendars without selecting.
  2. Is it possible to collapse Agenda calendars programatically to use with Android back button.
    Because now its not intuitive, and pressing back button closes the Screen
@trungtransg
Copy link

it should be to have this feature. In addition, it should have a previous/next (week, month) on top for easily selection.

@trungtransg
Copy link

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.

@jeffreyho92
Copy link

jeffreyho92 commented Apr 16, 2019

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.

<Agenda
...
ref={(ref) => this._Agenda = ref}
/>
this._Agenda.chooseDay(this._Agenda.state.selectedDay);
This is work for me

@musadiq-jinbade
Copy link

how can we close calendar if it is open in react native calendar(Agenda)

@jeffreyho92
Copy link

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();
}

@Inbal-Tish
Copy link
Collaborator

@veedeo Please see comment on PR #655

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants