Skip to content

Commit

Permalink
CalendarProvider - relayout children when numberOfDays view changes (…
Browse files Browse the repository at this point in the history
…removing from TimelineList) (wix#2255)
  • Loading branch information
Inbal-Tish authored Jun 15, 2023
1 parent 78e98f0 commit 0bd3f11
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/expandableCalendar/Context/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const CalendarProvider = (props: CalendarContextProviderProps) => {

return (
<CalendarContext.Provider value={contextValue}>
<View style={wrapperStyle}>{children}</View>
<View style={wrapperStyle} key={numberOfDays}>{children}</View>
{showTodayButton && renderTodayButton()}
</CalendarContext.Provider>
);
Expand Down
1 change: 0 additions & 1 deletion src/timeline-list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ const TimelineList = (props: TimelineListProps) => {
scrollViewProps={{
onMomentumScrollEnd
}}
key={numberOfDays}
/>
);
};
Expand Down

0 comments on commit 0bd3f11

Please sign in to comment.