Skip to content

Commit ebe24d3

Browse files
committed
CalendarList - pass markedDates only to Items that render a calendar (not simple string)
1 parent ddabe09 commit ebe24d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/calendar-list/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,12 @@ class CalendarList extends Component<CalendarListProps, State> {
290290
};
291291

292292
renderItem = ({item}: any) => {
293-
const {calendarStyle, horizontal, calendarWidth, testID, ...others} = this.props;
293+
const {horizontal, calendarStyle, calendarWidth, testID, markedDates, ...others} = this.props;
294294

295295
return (
296296
<CalendarListItem
297297
{...others}
298+
markedDates={item.getTime ? markedDates : undefined}
298299
item={item}
299300
testID={`${testID}_${item}`}
300301
style={calendarStyle}

0 commit comments

Comments
 (0)