Android setup
React Native autolinking connects the native module after installing the package. Rebuild the Android app to include it. For Expo, follow the Development Build guide.
NFC permission
The library manifest contributes the NFC permission and declares NFC hardware optional. Check that the merged application manifest includes:
<uses-permission android:name="android.permission.NFC" />
<uses-feature android:name="android.hardware.nfc" android:required="false" />If your app manages these settings itself, add the permission in its AndroidManifest.xml. Expo's nfcPermission: false option blocks the library-contributed permission, so the app must supply equivalent configuration before NFC use.
Toolchain and device
Use the Android SDK, build tools, NDK and Java versions required by your React Native version. The development example uses RN 0.84; see its toolchain guide.
Use isSupported() to check hardware support and isEnabled() to check the adapter state. NFC scans require a physical NFC-capable Android device. Continue with reading NDEF tags.
NFC antenna location
Available since react-native-nfc-manager 4.1.0. On Android 14 (API 34) and newer, getNfcAntennaInfo() reports where the NFC antenna is, so an app can show users where to hold a tag. It does not require a tag scan or technology request.
import {Platform} from 'react-native';
import NfcManager from 'react-native-nfc-manager';
if (Platform.OS === 'android') {
try {
const info = await NfcManager.getNfcAntennaInfo();
if (info && info.availableNfcAntennas.length > 0) {
console.log('NFC antenna layout in millimeters', info);
// {deviceWidth: 77, deviceHeight: 161, deviceFoldable: false,
// availableNfcAntennas: [{locationX: 23, locationY: 45}]}
} else {
console.log('No NFC antenna location is available on this device');
}
} catch (error) {
console.warn('Could not query NFC antenna location', error);
}
}Values are in millimeters, measured from the top-left corner with the screen facing the user in portrait (unfolded, on foldables). Handle null and an empty availableNfcAntennas list when location data is unavailable. iOS does not provide this API. See the API reference for all fields and fallback behavior.