1

Problem

We have to check whether a mobile phone / tablet has any locking functionality (PIN, Pattern, Biometrics, ...) enabled. If nothing was set, then the app shouldn't run.

Is there any way to do this via React Native? I have found - on Android - a Keyguard Manager, which seems to include this functionality, but couldn't find anything in the React Native docs about it.

So I fear my only option is to implement this myself via native modules? And is there even something similar like this on iOS?

Gh05d
  • 7,923
  • 7
  • 33
  • 64

1 Answers1

1

You can try the following package device-info

and use isPinOrFingerprintSet() method. I'm not sure, but that's what I read!

FaysalB
  • 330
  • 1
  • 11