mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
12 lines
453 B
TypeScript
12 lines
453 B
TypeScript
import { isSupported, authenticate, TouchIDError } from 'react-native-touch-id';
|
|
|
|
isSupported().then((isOk: boolean) => {}).catch((error: TouchIDError) => {});
|
|
|
|
authenticate('reason').then((isOk: boolean) => {}).catch((error: TouchIDError) => {});
|
|
|
|
authenticate('reason', {
|
|
title: 'Authentication Required',
|
|
color: '#1306ff',
|
|
fallbackTitle: 'Fallback Authentication Method'
|
|
}).then((isOk: boolean) => {}).catch((error: TouchIDError) => {});
|