@scrumble-nl/react-native-honeywell-scanner 1.0.57 → 1.0.58

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.
@@ -78,20 +78,10 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
78
78
  /*******************************/
79
79
 
80
80
  @ReactMethod
81
- public void startBarcodeDeviceListener() {
82
- @Override
83
- public void addBarcodeDeviceListener(BarcodeDeviceListener listener) {
84
- listener.onBarcodeDeviceConnectionEvent(BarcodeDeviceConnectionEvent event) {
85
- connectedDevice = event.getBarcodeReaderInfo().getName();
86
- }
87
- });
81
+ public void startBarcodeDeviceListener(Callback callBack) {
82
+ callBack.invoke("test");
88
83
  }
89
84
 
90
- // @ReactMethod
91
- // public void stopBarcodeDeviceListener() {
92
- // AidcManager.removeBarcodeDeviceListener();
93
- // }
94
-
95
85
  @ReactMethod
96
86
  public void startReader(final Promise promise) {
97
87
  AidcManager.create(reactContext, new CreatedCallback() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scrumble-nl/react-native-honeywell-scanner",
3
3
  "title": "React Native Honeywell Scanner-v2",
4
- "version": "1.0.57",
4
+ "version": "1.0.58",
5
5
  "description": "Bridge to use the Honeywell scanner",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",