hieuvp / react-native-fingerprint-scanner

Provide Fingerprint, Touch ID, and Face ID Scanner for React Native (Compatible with both Android and iOS)
https://www.npmjs.com/package/react-native-fingerprint-scanner
870 stars 298 forks source link

How to run a function after fingerPrint fail on IOS? #177

Open caolong0204 opened 3 years ago

caolong0204 commented 3 years ago

How to have things is like onAttempt on IOS Platform(onAttempt only Android) I need run a function after fingerPrint fail, use catch in authenticate is not enough, only run to catch when fingerprint fail more once! Many Tks!

HerickRaposo commented 2 years ago

I'm having problems with this on android too, when canceling, the user can even call the biometrics function, but this second time it doesn't go through the "then" of the FingerprintScanner.authenticate function