异步组件WillMount() {
this.setState({
mMonthStartDate: moment(new Date()).startof('month').format("YYYY-MM-DD"),
userAcadDetails: this.props.user.userAcadInfo,
item: JSON.parse(await AsyncStorage.getAsyncValue("""""""""""))
})
渲染方法
<Calendar
style={{ width: Dimensions.get("window").width }}
current={this.state.mMonthStartDate}
minDate={this.state.mMonthStartDate}
maxDate={this.state.mMonthEndDate}
onMonthChange={month => {
// this.getStartdate(month.dateString);
console.log("month changed", month);
}}
/>
每当远程调试 JS 处于应用程序完美状态时,我都无法破解此问题。当我将其关闭时,将显示此错误