joshjhargreaves / react-native-event-calendar

A React-Native iOS style calendar implemented using VirtualizedList.
MIT License
215 stars 105 forks source link

Add onHeaderPress event & goToDate method #7

Open duyluonglc opened 6 years ago

duyluonglc commented 6 years ago

This issue relate to https://github.com/duyluonglc/react-native-events-calendar/issues/10 Allow user handle event when presses to header to open date picker or something like that and use goToDate method to scroll to expect date

joshjhargreaves commented 6 years ago

Seems like a good idea to me!

joshjhargreaves commented 6 years ago

I think the goToDate would be very useful as users could render their own header and implement it however they wanted. Should be fairly easy to implement. I am going to experiment with https://github.com/joshyhargreaves/react-native-event-calendar/issues/7 first to see if there are any issues which potentially could change the internals of how the current day is selected.

AbdelkarimGhaouri commented 5 years ago

Hi guys,

Is there any update for the days selecting, Gotodate ?

Thanks

joshjhargreaves commented 5 years ago

@ReactDevBeginner: gotToDate is now implemented: https://github.com/joshjhargreaves/react-native-event-calendar#current-api

anniewey commented 5 years ago

Hi @joshjhargreaves, can you add onPress prop to the headerText? We need it to open calendar view date picker. Thanks