From fc3ab6fa1237c9a31a87d68379bcd6fe7d9e5a31 Mon Sep 17 00:00:00 2001 From: "damon.chen" Date: Tue, 21 May 2019 01:19:28 +0800 Subject: [PATCH] react-native-calendars: solve custom day component could not get the correct date (#35431) --- types/react-native-calendars/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-native-calendars/index.d.ts b/types/react-native-calendars/index.d.ts index 402a3fff1a..e7a4f07ea4 100644 --- a/types/react-native-calendars/index.d.ts +++ b/types/react-native-calendars/index.d.ts @@ -169,8 +169,8 @@ export type CalendarMarkingProps = export interface DayComponentProps { date: DateObject; marking: false | Marking[]; - onPress: () => any; - onLongPress: () => any; + onPress: (date: DateObject) => any; + onLongPress: (date: DateObject) => any; state: '' | 'selected' | 'disabled' | 'today'; theme: CalendarTheme; }