Answers for "react-native-calendars how to mark selected day"

0

react-native-calendars how to mark selected day

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
    });
};
Posted by: Guest on August-20-2021

Code answers related to "react-native-calendars how to mark selected day"

Code answers related to "Javascript"

Browse Popular Code Answers by Language