Compare commits

...

2 Commits

Author SHA1 Message Date
marcosrdz
f62b0b193e Update ReactNativeBiometrics.m 2020-06-18 20:36:53 -04:00
Brandon Hines
570dedf776
Merge pull request #54 from SelfLender/android-biometric-prompt
react native biometrics 2.0
2019-11-19 16:23:44 -06:00

View File

@ -163,7 +163,7 @@ RCT_EXPORT_METHOD(simplePrompt: (NSDictionary *)params resolver:(RCTPromiseResol
LAContext *context = [[LAContext alloc] init];
context.localizedFallbackTitle = @"";
[context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:promptMessage reply:^(BOOL success, NSError *biometricError) {
[context evaluatePolicy:LAPolicyDeviceOwnerAuthentication localizedReason:promptMessage reply:^(BOOL success, NSError *biometricError) {
if (success) {
NSDictionary *result = @{
@"success": @(YES)