Skip to content

Agenda data appearance #1059

Open
Open
@VolodymyrErsteniuk

Description

@VolodymyrErsteniuk

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:

Also specify:

  1. 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',
            },
          },
        }}
 />

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions