@@ -38,7 +38,7 @@ export default class AgendaView extends Component {
3838 // callback that gets called when items for a certain month should be loaded (month became visible)
3939 loadItemsForMonth : PropTypes . func ,
4040 // callback that fires when the calendar is opened or closed
41- calendarToggled : PropTypes . func ,
41+ onCalendarToggled : PropTypes . func ,
4242 // callback that gets called on day press
4343 onDayPress : PropTypes . func ,
4444 // callback that gets called when day changes while scrolling agenda list
@@ -215,8 +215,8 @@ export default class AgendaView extends Component {
215215 this . setState ( {
216216 calendarScrollable : true
217217 } ) ;
218- if ( this . props . calendarToggled ) {
219- this . props . calendarToggled ( true ) ;
218+ if ( this . props . onCalendarToggled ) {
219+ this . props . onCalendarToggled ( true ) ;
220220 }
221221 // Enlarge calendarOffset here as a workaround on iOS to force repaint.
222222 // Otherwise the month after current one or before current one remains invisible.
@@ -239,8 +239,8 @@ export default class AgendaView extends Component {
239239 calendarScrollable : false ,
240240 selectedDay : day . clone ( )
241241 } ) ;
242- if ( this . props . calendarToggled ) {
243- this . props . calendarToggled ( false ) ;
242+ if ( this . props . onCalendarToggled ) {
243+ this . props . onCalendarToggled ( false ) ;
244244 }
245245 if ( ! optimisticScroll ) {
246246 this . setState ( {
0 commit comments