Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const cleanUp = () => {
this.setState({isTestRunning: false});
NfcManager.closeTechnology()
NfcManager.unregisterTagEvent();
}
const cleanUp = () => {
this.setState({ isDetecting: false });
NfcManager.closeTechnology();
NfcManager.unregisterTagEvent();
};