【发布时间】:2021-04-22 01:55:21
【问题描述】:
我在 React Native 库中不断收到“文档未定义”。
但问题是,我搜索了整个图书馆,却没有在任何地方看到文档。
库是这样的,无论我使用什么版本的库,它都会发生:
https://github.com/wix/react-native-calendars
我不会来这里,除非我已经在这个问题上卡了 5 个多小时,而且看不到尽头。
我已经在这个版本中使用这个库几个月了,我尝试恢复到旧版本,但没有运气。每当我尝试在 iOS 上进行构建时,都会遇到文档问题。
<CalendarList
calendarWidth={320}
height={320}
theme={{ textDayFontSize: 16 }}
style={{ borderRadius: 0 }}
horizontal={horizontal}
minDate={"2020-03-01"}
maxDate={moment().format("YYYY-MM-DD")}
pastScrollRange={5}
futureScrollRange={5}
showScrollIndicator={true}
onDayPress={this.onDayPress}
markedDates={this.state.dateRangeObj}
markingType={"period"}
/>
【问题讨论】:
标签: javascript ios reactjs react-native