📌  相关文章
📜  react-native-calendars 如何标记选定的日期 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:05.350000             🧑  作者: Mango

代码示例1
getSelectedDayEvents = date => {
    let markedDates = {};
    markedDates[date] = { selected: true, color: '#00B0BF', textColor: '#FFFFFF' };
    let serviceDate = moment(date);
    serviceDate = serviceDate.format("DD.MM.YYYY");
    this.setState({
        selectedDate: serviceDate,
        markedDates: markedDates
    });
};