From 284c9771b33930cf3bad83b9219f4873229e9471 Mon Sep 17 00:00:00 2001 From: Henning Hall Date: Fri, 22 Oct 2021 12:32:36 +0200 Subject: [PATCH] chore: optional onDateChange type --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 6cf7846..be35d3e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -48,7 +48,7 @@ export interface DatePickerProps extends ViewProps { * The first and only argument is a Date object representing the new * date and time. */ - onDateChange: (date: Date) => void + onDateChange?: (date: Date) => void /** * Timezone offset in minutes.