From 96d7063b1b6df70a76194ea88d719639adb4ff65 Mon Sep 17 00:00:00 2001 From: James Munro Date: Mon, 27 Jul 2020 18:53:32 +0100 Subject: [PATCH] react-native-calendars: Add missing enableSwipeMonths prop. --- types/react-native-calendars/index.d.ts | 10 +++++++++- .../react-native-calendars-tests.tsx | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/types/react-native-calendars/index.d.ts b/types/react-native-calendars/index.d.ts index 4dd80c87f9ea6c..88662cfc9d9fc1 100644 --- a/types/react-native-calendars/index.d.ts +++ b/types/react-native-calendars/index.d.ts @@ -311,7 +311,15 @@ export interface CalendarBaseProps { webAriaLevel?: number; } -export class Calendar extends React.Component { } +export type CalendarProps = CalendarMarkingProps & + CalendarBaseProps & { + /** + * Enable the option to swipe between months. Default = false + */ + enableSwipeMonths?: boolean; + }; + +export class Calendar extends React.Component {} export interface CalendarListBaseProps extends CalendarBaseProps { /** diff --git a/types/react-native-calendars/react-native-calendars-tests.tsx b/types/react-native-calendars/react-native-calendars-tests.tsx index a871ae86844cd4..efdc7a6a609d2d 100644 --- a/types/react-native-calendars/react-native-calendars-tests.tsx +++ b/types/react-native-calendars/react-native-calendars-tests.tsx @@ -9,6 +9,8 @@ declare const Arrow: React.SFC;