stephy / CalendarPicker

CalendarPicker Component for React Native
792 stars 369 forks source link

onDateChange is not a function #110

Closed micodel closed 6 years ago

micodel commented 6 years ago

The README lists all props as optional, so I rendered <CalendarPicker /> as a test.

When clicking on a calendar date it throws an error: "onDateChange is not a function"

If this field is required, please update the README. If this field should be optional, the issue may be with the defaultProp.

peacechen commented 6 years ago

Thanks for noticing this. An easy fix would be to add a default prop with an empty function.

peacechen commented 6 years ago

Fixed in PR #111.

micodel commented 6 years ago

Thanks for such fast action on this!