From f4d2ccfdc577450f9cf7d749312a70bfba1f797b Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Mon, 20 Apr 2020 17:15:45 -0300 Subject: [PATCH] Patch expo-local-authentication --- patches/expo-local-authentication+9.0.0.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 patches/expo-local-authentication+9.0.0.patch diff --git a/patches/expo-local-authentication+9.0.0.patch b/patches/expo-local-authentication+9.0.0.patch new file mode 100644 index 000000000..c2866ff60 --- /dev/null +++ b/patches/expo-local-authentication+9.0.0.patch @@ -0,0 +1,14 @@ +diff --git a/node_modules/expo-local-authentication/android/src/main/java/expo/modules/localauthentication/LocalAuthenticationModule.java b/node_modules/expo-local-authentication/android/src/main/java/expo/modules/localauthentication/LocalAuthenticationModule.java +index babaf55..ecf8ad3 100644 +--- a/node_modules/expo-local-authentication/android/src/main/java/expo/modules/localauthentication/LocalAuthenticationModule.java ++++ b/node_modules/expo-local-authentication/android/src/main/java/expo/modules/localauthentication/LocalAuthenticationModule.java +@@ -139,7 +139,8 @@ public class LocalAuthenticationModule extends ExportedModule { + BiometricPrompt biometricPrompt = new BiometricPrompt(fragmentActivity, executor, mAuthenticationCallback); + + BiometricPrompt.PromptInfo promptInfo = new BiometricPrompt.PromptInfo.Builder() +- .setDeviceCredentialAllowed(true) ++ .setDeviceCredentialAllowed(false) ++ .setNegativeButtonText("Use Passcode") + .setTitle("Authenticate") + .build(); + biometricPrompt.authenticate(promptInfo);