Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
NfcManager.isSupported(NfcTech.MifareClassic).then(supported => {
this.setState({ supported });
if (supported) {
this._startNfc();
}
});
}
.then(() => NfcManager.requestTechnology(NfcTech.MifareClassic))
.then(() => NfcManager.getTag())