How do I get new markings to show up when the user clicks a date? I'm sure I'm just missing some reference in documentation, but I would appreciate a pointer in the right direction.
I'm using the library react-native-calendars (https://github.com/wix/react-native-calendars) and their boilerplate code.
<Calendar
// Collection of dates that have to be colored in a special way. Default = {}
markedDates={{
'2021-05-20': {textColor: 'green'},
'2021-05-22': {startingDay: true, color: 'green'},
'2021-05-23': {selected: true, endingDay: true, color: 'green', textColor: 'gray'},
'2021-05-04': {disabled: true, startingDay: true, color: 'green', endingDay: true}
}}
// Date marking style [simple/period/multi-dot/custom]. Default = 'simple'
markingType={'period'}
/>
Currently when I click a date nothing happens. I'm guessing I'm supposed to detect a click and change the markedDates dict accordingly, but I don't know how to do that. Is there a onMarked callback method or something I can use?