首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CalendarList月份未显示在react-native-calendars中

CalendarList月份未显示在react-native-calendars中
EN

Stack Overflow用户
提问于 2021-06-30 21:37:52
回答 1查看 209关注 0票数 0

我正在使用这个,但我面临的问题是,月份正在削减它,所以我只能看到20%的6月从顶部的月份名称。我不知道这里面有什么问题。

代码语言:javascript
复制
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}
              />
EN

回答 1

Stack Overflow用户

发布于 2021-07-06 19:53:25

尝试向CalendarList所在的容器添加填充。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68195891

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档