Please make our job easier by filling this template out to completion. If you're requesting a feature instead of reporting a bug, please feel free to skip the Environment and Reproducible Demo sections.
Using the agenda view, if you scroll forwards in time, it jumps past the empty day but you cannot scroll back in time without tapping the date.
I expect to be able to scroll in both directions
see screen recording
Please run these commands in the project folder and fill in their results:
npm ls react-native-calendars: 1.212.0npm ls react-native: 0.61.2Also specify:
@anthonyhumphreys I can't reproduce this bug in our demo app. Can you add more details like code snippet?
Hi @Inbal-Tish
First of all - thanks for this lovely library!
I've run into the same problems as @anthonyhumphreys (thanks for providing the video. It helped me verify that you had the exact same problem as I did).
I've created a snack that reproduces the bug. After setting the selected date to a date in the "future" I cannot scroll to the previous dates in the agenda view. Furthermore, when I start scrolling down (to future dates), it almost immediately scrolls all the way to the last item. If you set interval=1, so that there are no empty dates, it seem to work as expected.
@anthonyhumphreys Please provide renderEmptyDate function for your empty dates and see if the bug persists.
@Inbal-Tish renderEmptyDate is ready to be outcommented in the snack I provided earlier. I've done it here and the bug still persists.
has someone succeeded in fixing this issue?
@uladzislaubasin Unfortunately not. It ended up being unable to use the Agenda component for this reason.
Hi,
@anthonyhumphreys @jenskuhrjorgensen
I tried to use the code you uploaded and I found the problem.
When passing items to the Agenda, you must pass a value to each date. for example:
This is not allowed!
items: {
"2020-02-18": [{name: meeting}],
"2020-02-20": [{name: other meeting}]
}
You must pass _2020-02-19_:
items: {
"2020-02-18": [{name: meeting}],
"2020-02-19": [],
"2020-02-20": [{name: other meeting}]
}
Most helpful comment
Hi,
@anthonyhumphreys @jenskuhrjorgensen
I tried to use the code you uploaded and I found the problem.
When passing items to the Agenda, you must pass a value to each date. for example:
This is not allowed!
items: { "2020-02-18": [{name: meeting}], "2020-02-20": [{name: other meeting}] }You must pass _2020-02-19_:
items: { "2020-02-18": [{name: meeting}], "2020-02-19": [], "2020-02-20": [{name: other meeting}] }