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

refactor: simplified isDateInRange func to improve large calendar lis…

Open f0wu5u opened this issue 2 years ago • 5 comments

When debugging to improve performance for a large calendar list ( eg. 15 months calendar list ), we found the isDateInRange not super optimize as we needed to complete some not-necessary loop action for each month each time we scroll through the calendar list.

Current isDateInRange Next isDateInRange
Screenshot 2024-01-22 at 23 29 56 Screenshot 2024-01-22 at 23 33 35

As you can see, we can get rid of the not-necessary loop action

f0wu5u avatar Jan 22 '24 22:01 f0wu5u

Great! Currently having issues rendering a calendar with more than 3 months of lookahead, without getting framedrops. So anything that makes re-renders faster would be really helpful!

stianjensen avatar May 15 '24 11:05 stianjensen