react-native-nfc-manager 4.0.0-beta.1 → 4.0.0-beta.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.
|
@@ -94,12 +94,6 @@ class NfcManager extends NativeNfcManagerSpec implements ActivityEventListener,
|
|
|
94
94
|
return "NfcManager";
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
@ReactMethod
|
|
98
|
-
@Override
|
|
99
|
-
public void echo(String value, Callback callback) {
|
|
100
|
-
callback.invoke(null, value);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
97
|
@Override
|
|
104
98
|
public Map<String, Object> getConstants() {
|
|
105
99
|
final Map<String, Object> constants = new HashMap<>();
|
|
@@ -798,7 +792,7 @@ class NfcManager extends NativeNfcManagerSpec implements ActivityEventListener,
|
|
|
798
792
|
public void connect(ReadableArray techs, Callback callback){
|
|
799
793
|
synchronized(this) {
|
|
800
794
|
try {
|
|
801
|
-
techRequest = new TagTechnologyRequest(techs.toArrayList(),
|
|
795
|
+
techRequest = new TagTechnologyRequest(techs.toArrayList(), null);
|
|
802
796
|
techRequest.connect(this.tag);
|
|
803
797
|
callback.invoke(null, null);
|
|
804
798
|
} catch (Exception ex) {
|
package/ios/NfcManager.h
CHANGED
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
#ifdef RCT_NEW_ARCH_ENABLED
|
|
17
17
|
#import <NativeNfcManagerSpec/NativeNfcManagerSpec.h>
|
|
18
|
-
|
|
19
|
-
@interface NfcManager : RCTEventEmitter <NativeNfcManagerSpec, RCTBridgeModule, NFCNDEFReaderSessionDelegate, NFCTagReaderSessionDelegate> {
|
|
18
|
+
@interface NfcManager : RCTEventEmitter <NativeNfcManagerSpec, NFCNDEFReaderSessionDelegate, NFCTagReaderSessionDelegate> {
|
|
20
19
|
|
|
21
20
|
}
|
|
22
21
|
#else
|
package/ios/NfcManager.mm
CHANGED
|
@@ -599,10 +599,6 @@ continueUserActivity:(NSUserActivity *)userActivity
|
|
|
599
599
|
}
|
|
600
600
|
#endif
|
|
601
601
|
|
|
602
|
-
- (void)echo:(NSString *)value callback:(RCTResponseSenderBlock)callback {
|
|
603
|
-
callback(@[[NSNull null], value]);
|
|
604
|
-
}
|
|
605
|
-
|
|
606
602
|
- (void)hasTagEventRegistration:(RCTResponseSenderBlock)callback {
|
|
607
603
|
// bypass, Android's interface
|
|
608
604
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-nfc-manager",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.3",
|
|
4
4
|
"description": "A NFC module for react native.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"@babel/plugin-transform-runtime": "^7.12.10",
|
|
51
51
|
"@babel/preset-env": "^7.12.11",
|
|
52
52
|
"@babel/preset-react": "^7.12.10",
|
|
53
|
+
"@expo/config-plugins": "~10.0.0",
|
|
53
54
|
"@react-native-community/eslint-config": "^3.2.0",
|
|
54
55
|
"@release-it/conventional-changelog": "^8.0.1",
|
|
55
56
|
"dotenv-cli": "^7.4.2",
|
|
@@ -60,11 +61,10 @@
|
|
|
60
61
|
"react": "^16.13.1",
|
|
61
62
|
"react-native": "^0.63.0",
|
|
62
63
|
"release-it": "^17.5.0",
|
|
63
|
-
"typescript": "^4.1.3"
|
|
64
|
-
"@expo/config-plugins": "~9.0.0"
|
|
64
|
+
"typescript": "^4.1.3"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@expo/config-plugins": "
|
|
67
|
+
"@expo/config-plugins": "9 || 10"
|
|
68
68
|
},
|
|
69
69
|
"peerDependenciesMeta": {
|
|
70
70
|
"@expo/config-plugins": {
|
|
@@ -2,7 +2,6 @@ import type {TurboModule} from 'react-native';
|
|
|
2
2
|
import {TurboModuleRegistry} from 'react-native';
|
|
3
3
|
|
|
4
4
|
export interface Spec extends TurboModule {
|
|
5
|
-
echo(value: string, callback: (err?: string, resp?: string) => void): void;
|
|
6
5
|
isSupported(tech: string, callback: (err?: string, resp?: boolean) => void): void;
|
|
7
6
|
isEnabled(callback: (err?: string, resp?: boolean) => void): void;
|
|
8
7
|
start(callback: (err?: string) => void): void;
|