react-native-passcode-status

1.1.2 • Public • Published

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
}

Package Sidebar

Install

npm i react-native-passcode-status

Weekly Downloads

72

Version

1.1.2

License

MIT

Unpacked Size

37.6 kB

Total Files

13

Last publish

Collaborators

  • spwilko
  • genevayngrib
  • pgmemk
  • tenaciousmv