mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
11 lines
400 B
TypeScript
11 lines
400 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'
|
|
}).then((isOk: boolean) => {}).catch((error: TouchIDError) => {});
|