react-native-passcode-status
v1.1.2
Published
check if device-level passcode is supported/enabled/disabled
Downloads
677
Readme
react-native-passcode-status
check if device-level passcode is supported/enabled/disabled
thin wrapper around UIDevice-PasscodeStatus
Installation
Usage
import { supported, status } from 'react-native-passcode-status'
if (supported) {
switch (status) {
case 'enabled':
// do something
break;
case 'disabled':
// do something else
break;
case 'unknown':
// do something elser
break;
}
} else {
// your iOS version is probably < 8
}