Skip to content

Commit 9c23b38

Browse files
committed
CalendarList - fix types
1 parent e0e966a commit 9c23b38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/calendar-list/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const CALENDAR_HEIGHT = 360;
2525
const PAST_SCROLL_RANGE = 50;
2626
const FUTURE_SCROLL_RANGE = 50;
2727

28-
interface Props extends CalendarProps, FlatListProps<any> {
28+
interface Props extends CalendarProps, Omit<FlatListProps<any>, 'data' | 'renderItem'> {
2929
/** Max amount of months allowed to scroll to the past. Default = 50 */
3030
pastScrollRange?: number;
3131
/** Max amount of months allowed to scroll to the future. Default = 50 */
@@ -60,7 +60,7 @@ interface Props extends CalendarProps, FlatListProps<any> {
6060
onEndReached?: () => void;
6161
/** onLayout event */
6262
onLayout?: (event: LayoutChangeEvent) => void;
63-
removeClippedSubviews: boolean;
63+
removeClippedSubviews?: boolean;
6464
}
6565
export type CalendarListProps = Props;
6666

0 commit comments

Comments
 (0)