revtel / react-native-nfc-manager

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

Native module cannot be null #193

Closed roynes closed 3 years ago

roynes commented 5 years ago

RN Version: 0.60.5 This package version: 1.2.4

I've following manual linking since it won't work with auto linking.

but this problem still came out.

Screen Shot 2019-09-05 at 6 00 11 PM

Is there anyway to fix this?

roynes commented 5 years ago

Additional errors in compiling.

Screen Shot 2019-09-05 at 6 13 34 PM

Screen Shot 2019-09-05 at 6 13 56 PM

whitedogg13 commented 5 years ago

@roynes For RN60 + XCode 10, please use 2.0.0-beta.1. Thanks!

roynes commented 5 years ago

@whitedogg13, tried it to build via xcode and it failed.

whitedogg13 commented 5 years ago

@roynes Sorry for the late response. I have just test in on RN60.5, and it's OK.

Here's my step for your reference:

react-native init NfcTestAppRn60 --version react-native@0.60.5
cd NfcTestAppRn60
npm install --save react-native-nfc-manager@2.0.0-beta.1
cd ios
pod install

Then open the xcworkspace file (not previous xcodeproj) in ios directory and it should work.

whitedogg13 commented 5 years ago

Hi, for current dev, please follow this version guideline:

Thanks!

rahamin1 commented 4 years ago

I am having this problem in the following configurations:

Any idea what to do?

alexcastillo commented 3 years ago

Same here. My configurations are:

alexcastillo commented 3 years ago

A quick update:

I was able to fix the issue by adding iOS 14.3 device support to my XCode since my iPhone is running 14.3.

avivku90 commented 3 years ago

a quick question, can you write on an empty nfc tag after adding it?

A quick update:

I was able to fix the issue by adding iOS 14.3 device support to my XCode since my iPhone is running 14.3.

alexcastillo commented 3 years ago

Hi @avivku90,

I haven't tried that, I'm mostly reading from tags. Maybe @whitedogg13 can help?

whitedogg13 commented 3 years ago

@avivku90 it depends.

If you're talking about writing NDEF, then you will need to first format the tag so you can write NDEF message into it.

If you're using low-level NFC API, you should still be able to directly write into the tag's memory.

whitedogg13 commented 3 years ago

Guys, I will close it for now, please feel free to reopen or drop a new one if issue persists.

alexcastillo commented 3 years ago

Thank you for your help, Richie!