Open simonedavico opened 5 years ago
I think it's against Google's guidelines, and if you at like #165 - I want to move away from this implementation to a more standard UI supported by Google.
@zibs Actually, my goal is exactly to have something that resembles more closely the new BiometricPrompt implemented by Android P.
Unfortunately, there are a few problems with the new Biometrics API:
isSupported
function in this library. For more info, you can look at this issue on Google Issue Tracker.So, we could either support a custom prompt (but I agree that it would provide a less consistent UX) or replace the current prompt with something that resembles the new BiometricsPrompt (this article suggests an implementation). I would defer the implementation of the new API to a future in which they are more stable.
guys, any update over this? like if we can customize the prompt or display a modal instead of default one?
How difficult would it be to modify the android
TouchID.authenticate
configuration options to accept a custom prompt? This would enable customisation to make the prompt more in line with the rest of the app design.This could be also done less imperatively by implementing a
TouchId
component with a render prop:This can be also refactored to a
useTouchId
hook once react-native supports them.What do you think?