react-native-calendars: solve custom day component could not get the correct date (#35431)

This commit is contained in:
damon.chen 2019-05-21 01:19:28 +08:00 committed by Ryan Cavanaugh
parent c865650c42
commit fc3ab6fa12

View File

@ -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;
}