react-native-nfc-manager
react-native-nfc-manager copied to clipboard
Can i scan tag without button click event?
I want to scan tag without button click event.
how can i do it?
please tell me
Phone: Galaxy S10 5G
Example code provided in readme should do the trick 🤔
@ShiriNmi1520 The example you linked to uses an onPress event.
I also don't get how you are supposed to read tags without attaching the processing logic onto another UI event. Do I need to use NFCManager.ndefHandler and the likes? I find the examples a bit vague.
@Helicosaurus-Rex Just found a PR mention about updating example code that didn't merge #470, I'll dig into it
Thanks! I'll dig into it as well.
@kojoo112 @Helicosaurus-Rex I've created an example project using expo bare workflow and some code from #470 that reads NFC tag and display its ID without clicking anything, sees if this helps or need any improvement
Huge thanks! I should be able to make it work from here.
@ShiriNmi1520 THANK YOU SOOOOOOOOO MUCH!!!!
No problem, let me know if there's another problem and I'll try to figure it out :)
@ShiriNmi1520 If the setEventListener method is used and nfcVHandler's transceive method is used, a "No tech request available" warning will appear
@ShiriNmi1520 If the setEventListener method is used and nfcVHandler's transceive method is used, a "No tech request available" warning will appear
I'll look into it
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.