Open victorxtsai opened 1 month ago
Hey @victorxtsai!
As a workaround I can suggest changing the following line in node_modules/react-native-calendars/src/calendar-list/item.js
if (!visible) {
return (<Text style={textStyle}>{dateString}</Text>); // <- change to anything you want, but keep styles in place
}
E.g. I use
if (!visible) {
return (<ActivityIndicator style={textStyle} size="large" />);
}
After that make sure to use patch-package to create your patch
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.
Description
I'm using CalendarList and when I scroll fast, I see the month on the left side (as opposed to the middle) making the calendar look low quality. I've tried many different solutions, including snap scroll, but then my last month doesn't appear fully on the screen. I don't mind slowing down the scroll speed, but doesn't seem like there's a way to do that. I just want it to look quality / professional.
Expected Behavior
To not see the month headers pop up on the left if I scroll fast.
Observed Behavior
What actually happened when you performed the above actions?
If there's an error message, please paste the full terminal output and error message in this code block:
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-calendars
: react-native-calendars@1.1307.0npm ls react-native
: react-native@0.74.5Also specify:
Reproducible Demo
My CalendarList settings:
Screenshots