Closed mickytroxxy closed 3 months ago
Same problem please help. It's working on Android but not on iOS for me
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.
Hello my fellow devs, I have been stuck for almost 48 hours now on the tag.ndefMessage which is being undefined, but the tag itself has Object { "id": "0E9A3923200B20", "techTypes": Array [ "android.nfc.tech.IsoDep", "android.nfc.tech.NfcA", ], }
Below is my code, I tried using rn-cli then moved to eas-build with no luck
import React, { useEffect, useState } from 'react' import { Text, View, TouchableOpacity } from 'react-native'; import { LinearGradient } from 'expo-linear-gradient';
import * as Animatable from 'react-native-animatable'; import Icon from '../components/ui/Icon'; import { colors } from '../constants/Colors'; import { useRouter } from 'expo-router'; import { GlobalStyles } from '../styles'; import NfcManager, {NfcTech} from 'react-native-nfc-manager'; NfcManager.start(); const SplashScreen = () => { const router = useRouter(); const [nfcData, setNfcData] = useState(null); useEffect(() => { NfcManager.start(); return () => { NfcManager.cancelTechnologyRequest(); }; }, []);
const readNdef = async () => { try { console.log('Waiting for the read'); await NfcManager.requestTechnology([ NfcTech.MifareIOS, NfcTech.Ndef, NfcTech.Iso15693IOS, NfcTech.IsoDep, NfcTech.NfcA, NfcTech.NfcB, NfcTech.NfcF, NfcTech.NfcV, NfcTech.FelicaIOS, NfcTech.MifareClassic, ]);
}; return(
) } export default SplashScreen
Please help