我正在使用这个,但我面临的问题是,月份正在削减它,所以我只能看到20%的6月从顶部的月份名称。我不知道这里面有什么问题。
import {
Calendar,
CalendarList,
Agenda,
Calander,
} from "react-native-calendars";
<CalendarList
current={calendarDate}
style={styles.calanderStyle}
markingType={"custom"}
theme={{
// backgroundColor: "rgb(31,35,43)",
calendarBackground: "rgb(31,35,43)",
textSectionTitleColor: "#ffffff",
textSectionTitleDisabledColor: "#ffffff",
selectedDayBackgroundColor: "#ffffff",
selectedDayTextColor: "#ffffff",
todayTextColor: "#ffffff",
dayTextColor: "#ffffff",
textDisabledColor: "#d9e1e8",
dotColor: "#00adf5",
selectedDotColor: "#ffffff",
arrowColor: "rgb(101,180,84)",
// disabledArrowColor: 'red',
monthTextColor: "white",
indicatorColor: "blue",
textDayFontFamily: "ProximaNova-Regular",
textMonthFontFamily: "ProximaNova-Regular",
textDayHeaderFontFamily: "ProximaNova-Regular",
textDayFontWeight: "400",
textMonthFontWeight: "bold",
textDayHeaderFontWeight: "200",
textDayFontSize: 15,
textMonthFontSize: 2,
textDayHeaderFontSize: 11,
}}
horizontal={true}
onDayPress={(day) => apiCallingFunction(day.dateString)}
caleendarWidth={300}
markedDates={calandarEvents}
/>发布于 2021-07-06 19:53:25
尝试向CalendarList所在的容器添加填充。
https://stackoverflow.com/questions/68195891
复制相似问题