@better-network/react-native-nfc-passport-reader
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

@better-network/react-native-nfc-passport-reader

This package is a React native wrapper which handles reading an NFC Enabled passport using iOS 13 CoreNFC APIS

Installation

npm install @better-network/react-native-nfc-passport-reader

Usage

import { scanPassport, NFCPassportModel } from '@better-network/react-native-nfc-passport-reader';

// birthdate & expiryDate must be of type iso8601 string
 scanPassport({
    birthDate: "",
    expiryDate: "",  
    passportNumber: "",
    useNewVerificationMethod: true
  }).then((result) => {
      if ('error' in result) {
        // Errors during scanning session
      }
      // Do something with result of type NFCPassportModel
    }).catch(err => {
      console.log(err)
    })

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Package Sidebar

Install

npm i @better-network/react-native-nfc-passport-reader

Weekly Downloads

5

Version

0.2.2

License

MIT

Unpacked Size

64.7 kB

Total Files

55

Last publish

Collaborators

  • orlandokaramani