@scrumble-nl/react-native-honeywell-scanner 1.0.73 → 1.0.74

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.
@@ -109,9 +109,18 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
109
109
 
110
110
  final String message = "Scanner: " + event.getBarcodeReaderInfo().getName() + " is " + connected;
111
111
 
112
+ ((Activity) reactContext).runOnUiThread(new Runnable() {
113
+ @Override
114
+ public void run() {
115
+ Toast.makeText(reactContext, message, Toast.LENGTH_LONG).show();
116
+ }
117
+ });
118
+
112
119
  onDeviceChange(message);
113
120
  }
114
121
  });
122
+ } else {
123
+ promise.resolve(false);
115
124
  }
116
125
  }
117
126
  });
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.73",
4
+ "version": "1.0.74",
5
5
  "description": "Bridge to use the Honeywell scanner",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",