File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1+ declare const RNBiometrics : {
2+ /**
3+ * request biometric authentication
4+ *
5+ * note: promise will resolve when successful
6+ * but will be rejected when not with an error message
7+ */
8+ requestBioAuth : (
9+ /** title of prompt (can be an empty string) */
10+ promptTitle : string ,
11+ /** The app-provided reason for requesting authentication, which displays in the authentication dialog presented to the user. */
12+ promptMessage : string
13+ ) => Promise < boolean > ;
14+
15+ /**
16+ * check if authentication is possible
17+ */
18+ canAuthenticate : ( ) => Promise < boolean > ;
19+ } ;
20+
21+ export default RNBiometrics ;
Original file line number Diff line number Diff line change 1- import { NativeModules , Platform } from "react-native" ;
1+ import { NativeModules } from "react-native" ;
22
33const { RNBiometrics : RNBiometricsNative } = NativeModules ;
44
You can’t perform that action at this time.
0 commit comments