@scrumble-nl/react-native-honeywell-scanner 1.0.44 → 1.0.45

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.
@@ -34,16 +34,6 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
34
34
  public HoneywellScannerModule(ReactApplicationContext reactContext) {
35
35
  super(reactContext);
36
36
  this.reactContext = reactContext;
37
- }
38
-
39
- @Override
40
- public String getName() {
41
- return "HoneywellScanner";
42
- }
43
-
44
- @Override
45
- protected void onCreate(Bundle savedInstanceState) {
46
- super.onCreate(savedInstanceState);
47
37
 
48
38
  AidcManager.addBarcodeDeviceListener(new BarcodeDeviceListener() {
49
39
  @Override
@@ -54,15 +44,8 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
54
44
  }
55
45
 
56
46
  @Override
57
- protected void onStop(Bundle savedInstanceState) {
58
- super.onStop(savedInstanceState);
59
-
60
- AidcManager.removeBarcodeDeviceListener(new BarcodeDeviceListener() {
61
- @Override
62
- public void onBarcodeDeviceConnectionEvent(BarcodeDeviceConnectionEvent event) {
63
- connectedDevice = event.getBarcodeReaderInfo().getName();
64
- }
65
- });
47
+ public String getName() {
48
+ return "HoneywellScanner";
66
49
  }
67
50
 
68
51
  /**
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.44",
4
+ "version": "1.0.45",
5
5
  "description": "Bridge to use the Honeywell scanner",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",