From 3d143304e8a1fc109f4da85a58de51fa606e90e4 Mon Sep 17 00:00:00 2001 From: Martin van Dam Date: Mon, 20 Aug 2018 09:28:03 +0200 Subject: [PATCH] Added type definitions for 'mode' to TimePickerAndroidOpenOptions --- types/react-native/index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 184fc39724..a49ad86e86 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -11,6 +11,7 @@ // Michele Bombardi // Tanguy Krotoff // Alexander T. +// Martin van Dam // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -7867,6 +7868,7 @@ type TimePickerAndroidOpenOptions = { hour?: number; minute?: number; is24Hour?: boolean; + mode?: 'clock' | 'spinner' | 'default'; }; /** @@ -7899,6 +7901,10 @@ export interface TimePickerAndroidStatic { * * `is24Hour` (boolean) - If `true`, the picker uses the 24-hour format. If `false`, * the picker shows an AM/PM chooser. If undefined, the default for the current locale * is used. + * * `mode` (enum('clock', 'spinner', 'default')) - set the time picker mode + * * 'clock': Show a time picker in clock mode. + * * 'spinner': Show a time picker in spinner mode. + * * 'default': Show a default time picker based on Android versions. * * Returns a Promise which will be invoked an object containing `action`, `hour` (0-23), * `minute` (0-59) if the user picked a time. If the user dismissed the dialog, the Promise will