Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-native-passport-id-nfc-reader
Advanced tools
Readme
React native allows you to scan using nfc for ID and passport only on ios platform.
npm install react-native-passport-id-nfc-reader
import * as React from 'react';
import {
NFCPassportModel,
scanPassport,
} from 'react-native-passport-id-nfc-reader';
import { Alert, Button, StyleSheet, View } from 'react-native';
export default function App() {
const [_, setResult] = React.useState<NFCPassportModel>();
const scanDocument = () => {
scanPassport({
birthDate: '1993-04-10T00:00:00Z',
expiryDate: '2030-08-19T00:00:00Z',
passportNumber: 'A28L66104',
useNewVerificationMethod: true,
}).then((res) => {
if ('error' in res) {
Alert.alert('NFC failed!', res.error);
return;
}
setResult(res);
});
};
return (
<View style={styles.container}>
<Button onPress={scanDocument} title="Start scanning" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: 'white',
},
});
// ...
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
FAQs
test
The npm package react-native-passport-id-nfc-reader receives a total of 1 weekly downloads. As such, react-native-passport-id-nfc-reader popularity was classified as not popular.
We found that react-native-passport-id-nfc-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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.