DefinitelyTyped/types/react-native-touch-id/react-native-touch-id-tests.ts
2017-07-04 15:57:10 +08:00

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