-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CalendarList - blank space instead of month when scrolling fast #325
Comments
Hi, this is the result of calendars optimization. Calendar days are not rendered until calendar scrolls into view. If you scroll really fast, rendering lags and for a short time you see placeholder that is visible until calendars are loaded (the other alternative would be to have blank calendars until they are rendered) |
Hi @tautvilas So it cant be prevented? Could I use Also, would I be able to put a loading spinner in instead of the placeholder? |
Currently you can not customize placeholder. This is the place in code that you can change in your fork to display something else: https://github.com/wix/react-native-calendars/blob/master/src/calendar-list/item.js#L45 |
Can I setup a pull request to add that functionaility? |
Yes |
i have this issue how can i fix it? @tautvilas |
I would also like to be able to customize this placeholder. I just created a pull request: #2067 |
Placeholder much needed |
Are you planning to merge the PR soon? 🙏 |
Any Solution yet? |
Are you planning to merge the PR soon? 🤔 |
Description
When scrolling from month to month, using the CalendarList, If you scroll quickly the month is displayed in large bold text, with an empty calendar.
Expected Behavior
If scrolling quickly through CalendarList. Month appears as blank space.
Observed Behavior
No error, just blank space instead of month,.
Environment
npm ls react-native-calendars
: react-native-calendars@1.16.1npm ls react-native
: react-native@0.50.3Samsung s8 Android V7
Reproducible Demo
The text was updated successfully, but these errors were encountered: