Skip to content

canibal2/react-native-nfc-passport-reader

 
 

Repository files navigation

@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

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 29.1%
  • Swift 24.9%
  • C++ 13.6%
  • Objective-C++ 8.3%
  • TypeScript 5.8%
  • Ruby 5.6%
  • Other 12.7%