Skip to content

Commit 62892b4

Browse files
authored
Add support for refreshControl in the infiniteAgendaList.tsx (#2283)
1 parent ffdee18 commit 62892b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/expandableCalendar/infiniteAgendaList.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ const InfiniteAgendaList = (props: AgendaListProps) => {
4646
infiniteListProps,
4747
renderItem,
4848
onEndReached,
49-
onEndReachedThreshold
49+
onEndReachedThreshold,
50+
refreshControl
5051
} = props;
5152

5253
const {date, updateSource, setDate} = useContext(Context);
@@ -236,7 +237,7 @@ const InfiniteAgendaList = (props: AgendaListProps) => {
236237
layoutProvider={layoutProvider}
237238
onScroll={_onScroll}
238239
onVisibleIndicesChanged={_onVisibleIndicesChanged}
239-
scrollViewProps={{onMomentumScrollEnd: _onMomentumScrollEnd, nestedScrollEnabled: true}}
240+
scrollViewProps={{onMomentumScrollEnd: _onMomentumScrollEnd, nestedScrollEnabled: true, refreshControl}}
240241
onEndReached={_onEndReached}
241242
onEndReachedThreshold={onEndReachedThreshold as number | undefined}
242243
disableScrollOnDataChange

0 commit comments

Comments
 (0)