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) => {});