React hook that checks for an Android system feature and keeps the result cached.
Compatibility:
function FaceUnlockOnly() { const { result } = useHasSystemFeature('android.hardware.biometrics.face'); return <Text>{result ? 'Face unlock supported' : 'Face unlock unavailable'}</Text>;} Copy
function FaceUnlockOnly() { const { result } = useHasSystemFeature('android.hardware.biometrics.face'); return <Text>{result ? 'Face unlock supported' : 'Face unlock unavailable'}</Text>;}
React hook that checks for an Android system feature and keeps the result cached.
Compatibility:
