All Projects → tradle → React Native Passcode Status

tradle / React Native Passcode Status

Licence: mit
check if passcode is enabled on the device

react-native-passcode-status

check if device-level passcode is supported/enabled/disabled

thin wrapper around UIDevice-PasscodeStatus

Installation

See Linking Libraries

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
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].