You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
render() {
return (
<Calendar
width={(Dimensions.get('window').width)-32}
height={280}
tileHeight={35}
style={{alignSelf: 'center'}}
topbarVisible={true}
datesSelection={'single'}
firstDayOfWeek="monday"
showOtherDates="none"
currentDate={this.state.today}
selectedDates={this.state.dates}
eventsDates={["2016/11/20", "2016/11/29"]}
eventsColor="#9C27B0"
onDateChange={data => {
console.log(data);
}}
onMonthChange={month => {
console.log(month);
}}
/>
)
}
I used this inside my render().
selectedDates={this.state.dates}......{this.state.dates} gives undefined.
I need the selected dates array,but i cant get that.
where i get the selected dates???
Help me ASAP.Thanks in advance
The text was updated successfully, but these errors were encountered:
render() {
return (
<Calendar
width={(Dimensions.get('window').width)-32}
height={280}
tileHeight={35}
style={{alignSelf: 'center'}}
topbarVisible={true}
datesSelection={'single'}
firstDayOfWeek="monday"
showOtherDates="none"
currentDate={this.state.today}
selectedDates={this.state.dates}
eventsDates={["2016/11/20", "2016/11/29"]}
eventsColor="#9C27B0"
onDateChange={data => {
console.log(data);
}}
onMonthChange={month => {
console.log(month);
}}
/>
)
}
I used this inside my render().
selectedDates={this.state.dates}......{this.state.dates} gives undefined.
I need the selected dates array,but i cant get that.
where i get the selected dates???
Help me ASAP.Thanks in advance
The text was updated successfully, but these errors were encountered: