From 7f9d41cfbb0c43f4af2aba58739029a136f0ed0c Mon Sep 17 00:00:00 2001 From: Jin Shin Date: Fri, 13 Jul 2018 03:03:53 +1000 Subject: [PATCH] @types/react-native-touch-id: Updated the module to version 4.0.2, adding new config option (#27007) * Updated the module to version 4.0.2 * Updated Contributor name * Fix header --- types/react-native-touch-id/index.d.ts | 8 +++++--- .../react-native-touch-id/react-native-touch-id-tests.ts | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/types/react-native-touch-id/index.d.ts b/types/react-native-touch-id/index.d.ts index e222b87b59..d4224bf28b 100644 --- a/types/react-native-touch-id/index.d.ts +++ b/types/react-native-touch-id/index.d.ts @@ -1,7 +1,8 @@ -// Type definitions for react-native-touch-id 4.0.0 +// Type definitions for react-native-touch-id 4.0.2 // Project: https://github.com/naoufal/react-native-touch-id // Definitions by: huhuanming // Nikolay Polukhin +// Jin Shin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'react-native-touch-id' { @@ -15,8 +16,9 @@ declare module 'react-native-touch-id' { } export interface AuthenticateConfig { - title: string; - color: string; + title?: string; + color?: string; + fallbackTitle: string; } export const isSupported: () => Promise; diff --git a/types/react-native-touch-id/react-native-touch-id-tests.ts b/types/react-native-touch-id/react-native-touch-id-tests.ts index 8ad30c1390..7774bded96 100644 --- a/types/react-native-touch-id/react-native-touch-id-tests.ts +++ b/types/react-native-touch-id/react-native-touch-id-tests.ts @@ -6,5 +6,6 @@ authenticate('reason').then((isOk: boolean) => {}).catch((error: TouchIDError) = authenticate('reason', { title: 'Authentication Required', - color: '#1306ff' + color: '#1306ff', + fallbackTitle: 'Fallback Authentication Method' }).then((isOk: boolean) => {}).catch((error: TouchIDError) => {});