revtel / react-native-nfc-manager

React Native NFC module for Android & iOS
MIT License
1.38k stars 317 forks source link

NFCManager.registerTagEvent got 3 arguments expected 2 #215

Closed gosuisez closed 4 years ago

gosuisez commented 5 years ago

I got the following error

Screenshot_3

whitedogg13 commented 4 years ago

@gosuisez Sorry for the late resopse. It looks like a version mismatch between library and your client code. Please show me your code and library version for further info.

bigescalade commented 4 years ago

this is happening for me also on iOS 13, version 2.0.1.

index 2 beyond bounds [0 .. 1]' was thrown while invoking registerTagEvent on target NfcManager with params ( "", { invalidateAfterFirstRead = 0; isReaderModeEnabled = 0; readerModeFlags = 0; }, 1923 )

Appears to only happen on a release scheme build, does not happen on debug

bigescalade commented 4 years ago

This was an issue for my project using codepush, it was reverting the library back to an older version.

anaraa3 commented 1 year ago

This was an issue for my project using codepush, it was reverting the library back to an older version.

Hi @bigescalade, My project using codepush, how to solve this problem when using codepush.

Please sharing your solution^

Thanks

victorcorreae commented 1 year ago

Hey @anaraa3 I've had updated some packages including

"react-native-nfc-manager": "^3.14.8"

It was a version problem, so what worked for me was to clear all data, do a fresh install and rebuild and it all worked fine after this.