npm react-native-biometrics 2.0.0

latest releases: 2.2.2, 3.0.1, 3.0.0...
4 years ago

Breaking

  • Requires React Native 0.60+ for androidx compatibility
  • All functions now take an options object and return a result object
  • createSignature no longer prompts user for biometrics, simplePrompt can be used in conjunction with it to achieve the same effect
  • createSignature and simplePrompt no longer reject on cancellation, they resolve with a success flag set to false when a user cancels a biometric prompt
  • Android no longer resolves to biometry type of TouchID, it only resolves to Biometrics

Changed

  • Used android BiometricPrompt API for biometrics
  • Changed library function API
  • Added better support for prompt cancellations
  • Started to return native error messages in promise rejections

Don't miss a new react-native-biometrics release

NewReleases is sending notifications on new releases.