Skip to content

Commit 0bd3f11

Browse files
authored
CalendarProvider - relayout children when numberOfDays view changes (removing from TimelineList) (#2255)
1 parent 78e98f0 commit 0bd3f11

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/expandableCalendar/Context/Provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const CalendarProvider = (props: CalendarContextProviderProps) => {
120120

121121
return (
122122
<CalendarContext.Provider value={contextValue}>
123-
<View style={wrapperStyle}>{children}</View>
123+
<View style={wrapperStyle} key={numberOfDays}>{children}</View>
124124
{showTodayButton && renderTodayButton()}
125125
</CalendarContext.Provider>
126126
);

src/timeline-list/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ const TimelineList = (props: TimelineListProps) => {
162162
scrollViewProps={{
163163
onMomentumScrollEnd
164164
}}
165-
key={numberOfDays}
166165
/>
167166
);
168167
};

0 commit comments

Comments
 (0)