[BREAKGLASS] Append-only mirror of github.com/bluewallet/react-native-nfc-manager
Go to file
2019-10-24 21:27:08 +08:00
android basic tag reading, and ndef tech support 2019-09-09 16:50:32 +08:00
example enable mifare tech for iOS and provide example 2019-09-09 17:08:34 +08:00
ios ios: support NFCISO7816Tag 2019-09-21 21:22:54 +08:00
ndef-lib fix utf8 bug in ndef-text / ndef-util 2019-09-21 22:01:17 +08:00
.babelrc jest integration, currently testing NdefParser only 2018-04-15 14:55:21 +08:00
.gitignore ignore ctags stuff 2018-04-15 15:07:09 +08:00
.travis.yml add .travis.yml 2018-04-15 15:03:52 +08:00
APIv1.md restructure README 2019-09-10 22:46:04 +08:00
APIv2.md restructure README 2019-09-10 22:46:04 +08:00
ByteParser.js changed the MifareClassic code to work with number[] instead of casted strings (because UInt8Array is not really supported, but it mimics it) 2018-10-05 21:49:08 +02:00
ByteParser.test.js changed the MifareClassic code to work with number[] instead of casted strings (because UInt8Array is not really supported, but it mimics it) 2018-10-05 21:49:08 +02:00
index.d.ts prettify 2019-10-24 21:27:08 +08:00
LICENSE initial commit 2017-06-21 11:37:21 +08:00
NativeNfcManager.js first commit for ios13, support requestTechnology 2019-08-18 18:28:10 +08:00
ndef.test.js intergrate the ndef-lib into NdefManager, update examples 2018-09-17 15:17:33 +08:00
NdefParser.js intergrate the ndef-lib into NdefManager, update examples 2018-09-17 15:17:33 +08:00
NdefParser.test.js jest integration, currently testing NdefParser only 2018-04-15 14:55:21 +08:00
NfcManager.js ios: support NFCISO7816Tag 2019-09-21 21:22:54 +08:00
package.json 2.0.0-beta.4 2019-09-21 22:04:46 +08:00
react-native-nfc-manager.podspec Remade podspec 2018-04-14 09:35:16 +01:00
README.md readme fix 2019-09-10 22:47:36 +08:00

react-native-nfc-manager

npm version build issues

Bring NFC feature to React Native. Inspired by phonegap-nfc and react-native-ble-manager

Contributions are welcome!

iOS 13 development is ongoing!

Ndef writing, get UID, send mifare command, and APDU exchange... Lots features come into iOS13!

Currently this work will be published in npm beta channel.

Install

# RN >= 0.60, XCode 11 (for all fancy iOS 13 core nfc features!)
npm i --save react-native-nfc-manager@beta
# RN >= 0.60, XCode 10
npm i --save react-native-nfc-manager@2.0.0-beta.1
# RN < 0.60, XCode 10
npm i --save react-native-nfc-manager@1.2.2

Setup

# RN >= 0.60, iOS
cd ios && pod install && cd ..
# ...then open ios/xxx.xcworkspace...
# RN >= 0.60, Android
# This module leverages autolink, so no extra steps are required

(see here for more info about autolink)

# RN < 0.60, both platforms
react-native link react-native-nfc-manager

Extra iOS setup is required

You will need to setup some capabilities / entitlement / plist stuff to enable NFC development on your device, this repo explains these requirements very well:

Example

Look into example for the features you need.

v2 examples

v1 examples

API Document