react-native-nfc-manager
Version:
A NFC module for react native.
17 lines (14 loc) • 422 B
JavaScript
import {callNative} from '../NativeNfcManager';
import {handleNativeException} from '../NfcError';
class NdefFormatableHandlerAndroid {
async formatNdef(bytes, options={}) {
const defaultOptions = { readOnly: false };
return handleNativeException(
callNative('formatNdef', [
bytes,
{...defaultOptions, ...options}
])
);
}
}
export {NdefFormatableHandlerAndroid};