@scrumble-nl/react-native-honeywell-scanner 1.2.1 → 1.3.1

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
@@ -4,7 +4,9 @@ This module is forked and upgraded from react-native-honeywell-scanner-v2.
4
4
 
5
5
  ## Getting started
6
6
 
7
- `$ npm install @scrumble-nl/react-native-honeywell-scanner --save`
7
+ `$ npm install @scrumble-nl/react-native-honeywell-scanner`
8
+
9
+ With later versions of npm you have to add the `--legacy-peer-deps` flag.
8
10
 
9
11
  ## Usage
10
12
  ```typescript jsx
@@ -86,6 +86,7 @@ public class HoneywellScannerModule extends ReactContextBaseJavaModule implement
86
86
  reader.setProperty(BarcodeReader.PROPERTY_EAN_13_CHECK_DIGIT_TRANSMIT_ENABLED, true);
87
87
  reader.setProperty(BarcodeReader.PROPERTY_EAN_13_TWO_CHAR_ADDENDA_ENABLED, true);
88
88
  reader.setProperty(BarcodeReader.PROPERTY_EAN_13_FIVE_CHAR_ADDENDA_ENABLED, true);
89
+ reader.setProperty(BarcodeReader.PROPERTY_DATAMATRIX_ENABLED, true);
89
90
  promise.resolve(true);
90
91
  } catch (ScannerUnavailableException | UnsupportedPropertyException e) {
91
92
  promise.resolve(false);
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",
4
- "version": "1.2.1",
4
+ "version": "1.3.1",
5
5
  "description": "Bridge to use the Honeywell scanner",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -25,12 +25,8 @@
25
25
  "license": "MIT",
26
26
  "licenseFilename": "LICENSE",
27
27
  "readmeFilename": "README.md",
28
- "peerDependencies": {
29
- "react": "16.*",
30
- "react-native": "0.*"
31
- },
32
- "devDependencies": {
33
- "react": "16.*",
34
- "react-native": "0.*"
28
+ "dependencies": {
29
+ "react": "^17.0.2",
30
+ "react-native": "^0.68.5"
35
31
  }
36
32
  }