Open
Description
Description
Hello folks, I have a question to you, I have a problem with Agenda data rendering, its data has items in the past and in the future, so past items are not available when scrolling to top until I choose a day in the calendar. My items start from todays day.
Expected Behavior
I can scroll to my first non empty day of the month
What action did you perform, and what did you expect to happen?
I was trying to scroll to top and see all previous items.
Observed Behavior
My first section is related to current day and I can not go to past days items
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-calendars
:
[email protected]npm ls react-native
:
[email protected]
Also specify:
- Phone/emulator/simulator & version:
XCode 11.3.1
Reproducible Demo
Please provide a minimized reproducible demonstration of the problem you're reporting.
<Agenda
items={items}
loadItemsForMonth={loadItems}
// selected={selectedDay.format('YYYY-MM-DD')}
// markedDates={transformAgendaActivity(items)}
renderItem={renderItem}
rowHasChanged={handleRowChange}
// Specify how each date should be rendered. day can be undefined if the item is not first in that day.
renderDay={renderHeader}
// Specify how empty date content with no items should be rendered
renderEmptyDate={renderEmptyDate}
hideExtraDays={false}
// hideKnob={true}
firstDay={1}
theme={{
'stylesheet.agenda.list': {
container: {
flexDirection: 'column',
},
day: {
marginTop: 0,
},
today: {
color: 'red',
},
},
}}
/>