React native undefined不是一个对象(计算';Toolbar.propTypes';)反应本机常规日历
将react本机版本升级到0.61.1时显示此错误 我试图安装Proptypes库React native undefined不是一个对象(计算';Toolbar.propTypes';)反应本机常规日历,react-native,React Native,将react本机版本升级到0.61.1时显示此错误 我试图安装Proptypes库 <Calendar onTouchPrev={this.onTouchPrev} onTitlePress={this.onTitlePress} minDate={_today} markedDates={this.state._markedDates} theme={{
<Calendar
onTouchPrev={this.onTouchPrev}
onTitlePress={this.onTitlePress}
minDate={_today}
markedDates={this.state._markedDates}
theme={{
backgroundColor: "#ffffff",
calendarBackground: "#ffffff",
textSectionTitleColor: "#b6c1cd",
selectedDayBackgroundColor: "#00adf5",
selectedDayTextColor: "#ffffff",
todayTextColor: "#00adf5",
dayTextColor: "#2d4150",
textDisabledColor: "#d9e1e8",
dotColor: "#00adf5",
selectedDotColor: "#ffffff",
arrowColor: "#00adf5",
monthTextColor: "#00adf5",
indicatorColor: "blue",
textDayFontWeight: "300",
textMonthFontWeight: "bold",
textDayHeaderFontWeight: "300",
textDayFontSize: 16,
textMonthFontSize: 16,
textDayHeaderFontSize: 16
}}
style={{ width: "98%", marginTop: 30 }}
{...this.props}
onDayPress={(
date = { day, month, year, timestamp, dateString }
) => [this.onDateChange(date, startDate)]}
/>
[this.onDateChange(date,startDate)]]
/>
它会产生以下错误消息:
undefined不是对象(正在计算'ToolbarAndroid.propTypes')
React Native已经从
v61
中删除了Toolbar Android
(如果我从早期尝试将其集成到此版本中的正确回忆起,甚至可能是v60
),作为精益核心工作的一部分。但是,到今天为止,这些文件还没有完成。我想这个很快就会被删除。看到这个了吗
还没有(可能还没有)一个@react本地社区
版本。因此,您可能需要推出自己的或使用JS
变体