1 year ago

#335188

test-img

Yennefer

React Native: react-native-nfc-manager v3.13.2 doesn't have a handler for MifareIOS data type

I am working on an app, that reads a Firestore document id from the NFC card and displays the data contained by this document.

I have tested it on an Samsung J6 and an Oppo for Android and on an iPhone 7 & 12 Pro Max and everything worked perfectly with react-native-nfc-manager v3.10.1.

After I have updated this package to the lastest version (3.13.2), the methods for reading data from the NFC card have changed, e.g:

let tech = Platform === 'ios' ? NfcTech.MifareIOS : NfcTech.MifareUltralight;
...

// for Android

const resp = await NfcManager.mifareUltralightHandlerAndroid.mifareUltralightReadPages(6);
// instead of
const resp = NfcManager.transceive([...]);

// for iOS

const resp = await NfcManager.?.mifareUltralightReadPages(6);
// instead of
const resp = NfcManager.sendMifareCommandIOS([...]);

The problem arises for iOS (where I gave put the ?). Apparently there is no handler for the MifareIOS nfcTech type.

Does anyone have any idea if it will come in the future or if, at the moment, other handler could be used instead?

Thanks a lot!!!

ios

react-native

mifare

react-native-nfc-manager

0 Answers

Your Answer

Accepted video resources