Skip to content

Commit 687eb77

Browse files
committed
Wrapping calendarlistitem with react memo
1 parent 78758ac commit 687eb77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/calendar-list/item.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export type CalendarListItemProps = CalendarProps & {
2020
scrollToMonth?: (date: XDate) => void;
2121
};
2222

23-
const CalendarListItem = (props: CalendarListItemProps) => {
23+
const CalendarListItem = React.memo((props: CalendarListItemProps) => {
2424
const {
2525
theme,
2626
item,
@@ -102,7 +102,7 @@ const CalendarListItem = (props: CalendarListItemProps) => {
102102
</View>
103103
);
104104
}
105-
};
105+
});
106106

107107
export default CalendarListItem;
108108
CalendarListItem.displayName = 'CalendarListItem';

0 commit comments

Comments
 (0)