Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

NFC Reader wrapper for React Native


Version published
Weekly downloads
11
decreased by-15.38%
Maintainers
1
Install size
63.2 kB
Created
Weekly downloads
 

Readme

Source

@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

Keywords

FAQs

Last updated on 29 Nov 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc