【发布时间】:2020-10-30 14:01:08
【问题描述】:
创建帖子时,是 30 日星期五。出于某种原因,我的日历将这一天显示为星期六:
我的日历代码:
<Calendar
style={{width: Dimensions.get('screen').width - 10}}
theme={{
selectedDayBackgroundColor: '#00adf5',
selectedDayTextColor: '#ffffff',
dotColor: '#00adf5',
}}
onDayPress={this.onDaySelect}
markedDates={this.state.markedDates}
markingType="single"
minDate={minDate}
maxDate={maxDate}
disableAllTouchEventsForDisabledDays={true}
/>
【问题讨论】:
-
这很奇怪。甚至您的
Wednesday拼写错误。有人碰过你的代码吗? -
@kenmistry 不。我一个人在做这个项目
标签: react-native calendar react-native-calendars