react-native-nfc-manager 3.16.1 → 3.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -12,6 +12,11 @@ Made with ❤️ by [whitedogg13](https://github.com/whitedogg13) and [revteltec
|
|
|
12
12
|
|
|
13
13
|
> Special thanks to [javix64](https://github.com/javix64) for restructuring the documentation!
|
|
14
14
|
|
|
15
|
+
## Version Notes
|
|
16
|
+
|
|
17
|
+
- `v3` only supports legacy architecture (latest release is `v3.16.2`).
|
|
18
|
+
- `v4` supports new architecture (still in beta, latest release is `v4.0.0-beta.3`) .
|
|
19
|
+
|
|
15
20
|
## Table of Contents
|
|
16
21
|
|
|
17
22
|
1. [Installation](#installation)
|
|
@@ -88,7 +93,7 @@ More info on Apple's [doc](https://developer.apple.com/documentation/corenfc/nfc
|
|
|
88
93
|
</array>
|
|
89
94
|
```
|
|
90
95
|
|
|
91
|
-
An incomplete list of aid's can be found here. [Application identifier](https://www.eftlab.com/knowledge-base/
|
|
96
|
+
An incomplete list of aid's can be found here. [Application identifier](https://www.eftlab.com/knowledge-base/complete-list-of-application-identifiers-aid)
|
|
92
97
|
|
|
93
98
|
3. in Xcode's `Signing & Capabilities` tab, make sure `Near Field Communication Tag Reading` capability had been added, like this:
|
|
94
99
|
|
|
@@ -747,7 +747,7 @@ class NfcManager extends ReactContextBaseJavaModule implements ActivityEventList
|
|
|
747
747
|
public void connect(ReadableArray techs, Callback callback){
|
|
748
748
|
synchronized(this) {
|
|
749
749
|
try {
|
|
750
|
-
techRequest = new TagTechnologyRequest(techs.toArrayList(),
|
|
750
|
+
techRequest = new TagTechnologyRequest(techs.toArrayList(), null);
|
|
751
751
|
techRequest.connect(this.tag);
|
|
752
752
|
callback.invoke(null, null);
|
|
753
753
|
} catch (Exception ex) {
|
|
@@ -1151,9 +1151,9 @@ class NfcManager extends ReactContextBaseJavaModule implements ActivityEventList
|
|
|
1151
1151
|
try {
|
|
1152
1152
|
if (isReaderModeEnabled) {
|
|
1153
1153
|
if (enable) {
|
|
1154
|
-
Log.i(LOG_TAG, "enableReaderMode: "
|
|
1154
|
+
Log.i(LOG_TAG, String.format("enableReaderMode, flags: %d, delay: %d ms", readerModeFlags, readerModeDelay));
|
|
1155
1155
|
Bundle readerModeExtras = new Bundle();
|
|
1156
|
-
readerModeExtras.putInt(NfcAdapter.EXTRA_READER_PRESENCE_CHECK_DELAY, readerModeDelay
|
|
1156
|
+
readerModeExtras.putInt(NfcAdapter.EXTRA_READER_PRESENCE_CHECK_DELAY, readerModeDelay);
|
|
1157
1157
|
nfcAdapter.enableReaderMode(currentActivity, new NfcAdapter.ReaderCallback() {
|
|
1158
1158
|
@Override
|
|
1159
1159
|
public void onTagDiscovered(Tag tag) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-nfc-manager",
|
|
3
|
-
"version": "3.16.
|
|
3
|
+
"version": "3.16.3",
|
|
4
4
|
"description": "A NFC module for react native.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"@babel/plugin-transform-runtime": "^7.12.10",
|
|
50
50
|
"@babel/preset-env": "^7.12.11",
|
|
51
51
|
"@babel/preset-react": "^7.12.10",
|
|
52
|
+
"@expo/config-plugins": "~10.0.0",
|
|
52
53
|
"@react-native-community/eslint-config": "^3.2.0",
|
|
53
54
|
"@release-it/conventional-changelog": "^8.0.1",
|
|
54
55
|
"dotenv-cli": "^7.4.2",
|
|
@@ -59,11 +60,10 @@
|
|
|
59
60
|
"react": "^16.13.1",
|
|
60
61
|
"react-native": "^0.63.0",
|
|
61
62
|
"release-it": "^17.5.0",
|
|
62
|
-
"typescript": "^4.1.3"
|
|
63
|
-
"@expo/config-plugins": "~9.0.0"
|
|
63
|
+
"typescript": "^4.1.3"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@expo/config-plugins": "
|
|
66
|
+
"@expo/config-plugins": "9 || 10"
|
|
67
67
|
},
|
|
68
68
|
"peerDependenciesMeta": {
|
|
69
69
|
"@expo/config-plugins": {
|