Skip to content

Commit a4b3173

Browse files
committed
Merge branch 'master' of github.com:wix/react-native-calendars into release
2 parents 845943f + 67c40ff commit a4b3173

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docsRNC/docs/CalendarList.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Calendar list component
22
[(code example)](https://github.com/wix/react-native-calendars/blob/master/example/src/screens/calendarsList.tsx)
33
:::info
4-
This component extends **[Calendar, FlatList](https://github.com/wix/react-native-calendars/blob/master/src/calendar/index.tsx,https://reactnative.dev/docs/flatlist)** props.
4+
This component extends **[Calendar](https://github.com/wix/react-native-calendars/blob/master/src/calendar/index.tsx), [FlatList](https://reactnative.dev/docs/flatlist)** props.
55
:::
66

77
<div style={{display: 'flex', flexDirection: 'row', overflowX: 'auto', maxHeight: '500px', alignItems: 'center'}}><img style={{maxHeight: '420px'}} src={'https://github.com/wix/react-native-calendars/blob/master/demo/assets/calendar-list.gif?raw=true'}/>

src/expandableCalendar/agendaList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,14 @@ const AgendaList = (props: AgendaListProps) => {
199199
const _onMomentumScrollBegin = useCallback((event: NativeSyntheticEvent<NativeScrollEvent>) => {
200200
setDisabled?.(true);
201201
onMomentumScrollBegin?.(event);
202-
}, [onMomentumScrollBegin]);
202+
}, [onMomentumScrollBegin, setDisabled]);
203203

204204
const _onMomentumScrollEnd = useCallback((event: NativeSyntheticEvent<NativeScrollEvent>) => {
205205
// when list momentum ends AND when scrollToSection scroll ends
206206
sectionScroll.current = false;
207207
setDisabled?.(false);
208208
onMomentumScrollEnd?.(event);
209-
}, [onMomentumScrollEnd]);
209+
}, [onMomentumScrollEnd, setDisabled]);
210210

211211
const _onScrollToIndexFailed = useCallback((info: {index: number; highestMeasuredFrameIndex: number; averageItemLength: number}) => {
212212
if (onScrollToIndexFailed) {

0 commit comments

Comments
 (0)