Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29612

Hide FingerPrint Native UI

$
0
0

How do I hide the fingerprint native UI so that I can show my custom using functional components.

Am having below component that has the <FingerPrintPop /> component which renders instead of rendering the native ui, but still the native ui still shows, how do i hide it. thanks

const FingerPrintAuth = (props) => {    const [state, setState] = useState({      errorMessageLegacy: undefined,      biometricLegacy: undefined,    })    useEffect(() => {        return () => {            FingerprintScanner.release()        }    })    const requiresLegacyAuth = _ => {        return Platform.Version < 23    }    const authCurrent = _ => {        FingerprintScanner.authenticate({title: 'Login with BioMetrics'})        .then((res)=>{            console.log(res)        })        .catch(error => console.log(error))    }    const authLegacy = _ => {        FingerprintScanner.authenticate({onAttempt: handleAttemptedAuthLegacy})        .then(res => {            console.log(res)        })        .catch(error => {            setState(prev=>({                ...prev,                errorMessageLegacy: error.message,                biometricLegacy: error.biometric            }))        })    }    const handleAttemptedAuthLegacy = error => {        setState(prev=>({            ...prev,            errorMessageLegacy: error.message,        }))    }    if (requiresLegacyAuth()) {        authLegacy()        return <FingerPrintPop />    } else {        console.log("rererrerere")        authCurrent()        return <FingerPrintPop />    }}

Viewing all articles
Browse latest Browse all 29612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>