![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
react-native-nfc-passport-reader
Advanced tools
Reads passports and ID cards using its the device NFC.
This React Native plugin enables the reading of NFC-enabled passports using native device capabilities. It provides a user-friendly interface for initiating and handling NFC operations, including reading passport data, checking NFC support, and managing NFC settings.
To use the NFC Passport Reader in your React Native project, follow these steps:
npm install react-native-nfc-passport-reader
npx react-native link react-native-nfc-passport-reader
<key>NFCReaderUsageDescription</key>
<string>This app requires NFC access to verify your identity.</string>
<key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
<array>
<string>A0000002471001</string>
<string>00000000000000</string>
<string>D4100000030001</string>
</array>
<uses-feature android:name="android.hardware.nfc" android:required="false" />
<uses-permission android:name="android.permission.NFC" />
Note: This plugin is currently only available for Android devices.
Import and use the NFC Passport Reader as follows:
import NfcPassportReader from 'react-native-nfc-passport-reader';
import type { NfcResult } from 'react-native-nfc-passport-reader';
const result: NfcResult = await NfcPassportReader.startReading({
mrz: 'P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<1234567890',
includeImages: true,
});
NfcPassportReader.stopReading();
NfcPassportReader.addOnTagDiscoveredListener(() => {
console.log('Tag Discovered');
});
NfcPassportReader.addOnNfcStateChangedListener((state: 'on' | 'off') => {
console.log('NFC State Changed:', state);
});
const supported = await NfcPassportReader.isNfcSupported();
const enabled = await NfcPassportReader.isNfcEnabled();
NfcPassportReader.openNfcSettings();
For a detailed example of how to use the NFC Passport Reader, please see the Example App.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
FAQs
Reads passports and ID cards using its the device NFC.
We found that react-native-nfc-passport-reader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.