react-native-device-info - v15.0.1
    Preparing search index...

    Function useHasSystemFeature

    • React hook that checks for an Android system feature and keeps the result cached.

      Compatibility: iOS ❌ Android ✅ Windows ❌ Web ❌ visionOS ❌

      Parameters

      • feature: string

      Returns AsyncHookResult<boolean>

      function FaceUnlockOnly() {
      const { result } = useHasSystemFeature('android.hardware.biometrics.face');
      return <Text>{result ? 'Face unlock supported' : 'Face unlock unavailable'}</Text>;
      }