react-native-calendars icon indicating copy to clipboard operation
react-native-calendars copied to clipboard

AgendaList not usable in production for bugs and performance

Open francesco-clementi-92 opened this issue 2 years ago • 9 comments

Description

When I click to a day in the week calendar, agendalist not always scroll to the selected date. Moreover, even with your demo, in a plain react native project, I'll get the warning: VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc. {"contentLength": 5105.45458984375, "dt": 525, "prevDt": 8066}

Expected Behavior

I'd expect AgendaList scrolling to specified date with acceptable performance.

Reproducible Demo

https://snack.expo.dev/ahLw7maIA

Try to play with date in the week calendar and AgendaList will stop to follow selected date

francesco-clementi-92 avatar Apr 12 '23 15:04 francesco-clementi-92

Having the same issue I think if someone can do a PR to replace the SectionList with a FlashList it would really help. I tried looking through the code but wasn't sure how to do it

Related:

  • #2153

KrisLau avatar May 02 '23 15:05 KrisLau

@francesco-clementi-92 @KrisLau

Could you please help me on this issue #2224

vinaybn-exxat avatar May 04 '23 17:05 vinaybn-exxat

I need this issue fixed too :)

macasfaj avatar May 05 '23 07:05 macasfaj

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 07 '23 05:08 stale[bot]

Same issue here

TNAJanssen avatar Aug 31 '23 07:08 TNAJanssen

Same issue

erennyuksell avatar Sep 09 '23 17:09 erennyuksell

Hi folks, I created a PR solving this issue, please give it a look and let me know if I'm missing an edge case.

Lespoir avatar Nov 06 '23 17:11 Lespoir

@Lespoir Looks great but not sure if i'm mistaken but that PR doesn't seem to be to this repo?

KrisLau avatar Nov 09 '23 08:11 KrisLau

I am evaluate this component, when I follow the example AgendaList, saw same error, so one year passed since this post, the issue still exists, and I think the agenda data is not large, I am wondering whether should I use this component :(

saaspeter avatar Jul 12 '24 02:07 saaspeter

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 31 '25 23:01 stale[bot]