react-native-nfc-manager
Version:
A NFC module for react native.
15 lines (12 loc) • 402 B
JavaScript
import {Platform} from 'react-native';
import {callNative} from '../NativeNfcManager';
import {handleNativeException} from '../NfcError';
class NfcAHandler {
async transceive(bytes) {
if (Platform.OS === 'ios') {
return handleNativeException(callNative('sendMifareCommand', [bytes]));
}
return handleNativeException(callNative('transceive', [bytes]));
}
}
export {NfcAHandler};