react-native-scanbot-barcode-scanner-sdk 7.0.0-rc.1 → 7.0.0-rc.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.
Files changed (48) hide show
  1. package/Libraries.txt +13 -33
  2. package/README.md +272 -39
  3. package/RNScanbotBarcodeSDK.podspec +1 -1
  4. package/android/gradle.properties +1 -1
  5. package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkModule.kt +1 -1
  6. package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkPluginResultDelegate.kt +2 -2
  7. package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcode_scanner_view/ScanbotBarcodeScannerViewManager.kt +5 -0
  8. package/android/src/paper/com/facebook/react/viewmanagers/ScanbotBarcodeScannerViewManagerDelegate.java +3 -0
  9. package/android/src/paper/com/facebook/react/viewmanagers/ScanbotBarcodeScannerViewManagerInterface.java +1 -0
  10. package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerLegacyView.h +1 -0
  11. package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerLegacyView.m +17 -11
  12. package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerView.h +1 -0
  13. package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerView.mm +18 -13
  14. package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewControllerWrapper.h +3 -0
  15. package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewControllerWrapper.m +4 -0
  16. package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewManager.mm +1 -0
  17. package/ios/ScanbotBarcodeSdkPluginResultDelegate.m +1 -1
  18. package/lib/commonjs/barcode/BarcodeConfigurationTypes.js +19 -19
  19. package/lib/commonjs/barcode/BarcodeTypes.js +1 -1
  20. package/lib/commonjs/component/barcode-camera-view/ScanbotBarcodeCameraView.js +10 -5
  21. package/lib/commonjs/component/barcode-camera-view/ScanbotBarcodeCameraView.js.map +1 -1
  22. package/lib/commonjs/component/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +1 -1
  23. package/lib/commonjs/documents/CommonFieldType.js +1 -1
  24. package/lib/commonjs/utils/json/JsonSerializationTypes.js +1 -1
  25. package/lib/module/barcode/BarcodeConfigurationTypes.js +19 -19
  26. package/lib/module/barcode/BarcodeTypes.js +1 -1
  27. package/lib/module/component/barcode-camera-view/ScanbotBarcodeCameraView.js +10 -5
  28. package/lib/module/component/barcode-camera-view/ScanbotBarcodeCameraView.js.map +1 -1
  29. package/lib/module/component/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +1 -1
  30. package/lib/module/documents/CommonFieldType.js +1 -1
  31. package/lib/module/utils/json/JsonSerializationTypes.js +1 -1
  32. package/lib/typescript/src/barcode/BarcodeConfigurationTypes.d.ts +19 -19
  33. package/lib/typescript/src/barcode/BarcodeTypes.d.ts +1 -1
  34. package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraView.d.ts.map +1 -1
  35. package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.d.ts +6 -1
  36. package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.d.ts.map +1 -1
  37. package/lib/typescript/src/component/spec/ScanbotBarcodeScannerViewNativeComponent.d.ts +1 -0
  38. package/lib/typescript/src/component/spec/ScanbotBarcodeScannerViewNativeComponent.d.ts.map +1 -1
  39. package/lib/typescript/src/documents/CommonFieldType.d.ts +1 -1
  40. package/lib/typescript/src/utils/json/JsonSerializationTypes.d.ts +1 -1
  41. package/package.json +6 -11
  42. package/src/barcode/BarcodeConfigurationTypes.ts +19 -19
  43. package/src/barcode/BarcodeTypes.ts +1 -1
  44. package/src/component/barcode-camera-view/ScanbotBarcodeCameraView.tsx +11 -4
  45. package/src/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.ts +6 -1
  46. package/src/component/spec/ScanbotBarcodeScannerViewNativeComponent.ts +1 -0
  47. package/src/documents/CommonFieldType.ts +1 -1
  48. package/src/utils/json/JsonSerializationTypes.ts +1 -1
@@ -9,13 +9,14 @@
9
9
 
10
10
  #import "RCTFabricComponentsPlugins.h"
11
11
  #import <React/RCTConversions.h>
12
+ #import <Foundation/Foundation.h>
12
13
 
13
14
  using namespace facebook::react;
14
15
 
15
16
  @interface RNScanbotBarcodeScannerView() <RCTScanbotBarcodeScannerViewViewProtocol>
16
17
  @property (strong, nonatomic) SBSDKBarcodeScannerViewController *scannerViewController;
17
- @property (strong, nonatomic) UIViewController *vc;
18
18
  @property (nonatomic) BOOL scanningEnabled;
19
+ @property (nonatomic) BOOL attached;
19
20
  @property (nonatomic) NSString* _Nullable barcodeItemOverlayViewLoadingText;
20
21
  @property (atomic) NSMutableDictionary* _Nullable barcodeItemOverlayViewBinders;
21
22
  @end
@@ -35,9 +36,8 @@ using namespace facebook::react;
35
36
  _scanningEnabled = true;
36
37
  _barcodeItemOverlayViewLoadingText = nil;
37
38
  _barcodeItemOverlayViewBinders = nil;
38
-
39
- self.vc = [[UIViewController alloc] init];
40
- self.vc.view = self;
39
+ self.attached = false;
40
+
41
41
  self.scannerViewController = [RNScanbotBarcodeScannerViewControllerWrapper initController];
42
42
  self.scannerViewController.delegate = self;
43
43
  self.scannerViewController.trackingOverlayController.delegate = self;
@@ -49,22 +49,24 @@ using namespace facebook::react;
49
49
  - (void)didMoveToWindow {
50
50
  [super didMoveToWindow];
51
51
 
52
- if(self.window) {
53
- if (self.vc == nil){
54
- self.vc = [[UIViewController alloc] init];
55
- self.vc.view = self;
56
- }
57
- [self.scannerViewController attachWithParentViewController:self.vc parentView:self];
52
+ if(self.window && !self.attached){
53
+ [[self reactViewController] sbsdk_attachViewController:self.scannerViewController inView:self];
54
+ self.attached = true;
58
55
  }
59
56
  }
60
57
 
61
58
  - (void)prepareForRecycle {
59
+ self.scannerViewController.delegate = nil;
60
+ self.scannerViewController.trackingOverlayController.delegate = nil;
61
+ [self.scannerViewController sbsdk_detachViewController:self.scannerViewController];
62
+
62
63
  self.scannerViewController = nil;
63
- self.vc = nil;
64
+
64
65
  self.barcodeItemOverlayViewLoadingText = nil;
65
66
  self.barcodeItemOverlayViewBinders = nil;
66
67
 
67
68
  static const auto defaultProps = std::make_shared<const ScanbotBarcodeScannerViewProps>();
69
+ self.attached = false;
68
70
  _props = defaultProps;
69
71
  [super prepareForRecycle];
70
72
  }
@@ -90,6 +92,9 @@ using namespace facebook::react;
90
92
  if(oldViewProps.scanningEnabled != newViewProps.scanningEnabled){
91
93
  self.scanningEnabled = newViewProps.scanningEnabled;
92
94
  }
95
+ if(oldViewProps.hardwareButtonsEnabled != newViewProps.hardwareButtonsEnabled){
96
+ [RNScanbotBarcodeScannerViewControllerWrapper setHardwareButtonsEnabled:self.scannerViewController value:newViewProps.hardwareButtonsEnabled];
97
+ }
93
98
  // MARK: FinderConfig Props
94
99
  if(oldViewProps.finderEnabled != newViewProps.finderEnabled){
95
100
  [RNScanbotBarcodeScannerViewControllerWrapper setFinderEnabled:finderConfig value:newViewProps.finderEnabled];
@@ -410,8 +415,8 @@ bool operator!=(std::vector<ScanbotBarcodeScannerViewConfigFormatConfigurationsS
410
415
  v1[i].australiaPostCustomerFormat != v2[i].australiaPostCustomerFormat ||
411
416
  v1[i].formats != v2[i].formats
412
417
  ){
413
- return true;
414
- }
418
+ return true;
419
+ }
415
420
  }
416
421
 
417
422
  return false;
@@ -77,6 +77,9 @@
77
77
  + (void) setConfigReturnBarcodeImage:(SBSDKBarcodeScannerConfiguration* _Nonnull)config
78
78
  value:(BOOL)value;
79
79
 
80
+ + (void) setHardwareButtonsEnabled:(SBSDKBarcodeScannerViewController* _Nonnull)controller
81
+ value:(BOOL)value;
82
+
80
83
  + (void) setConfigEngineMode:(SBSDKBarcodeScannerConfiguration* _Nonnull)config
81
84
  value:(NSString * _Nullable)value;
82
85
 
@@ -149,6 +149,10 @@
149
149
  config.trackingOverlayController.configuration.isAutomaticSelectionEnabled = value;
150
150
  }
151
151
 
152
+ + (void)setHardwareButtonsEnabled:(SBSDKBarcodeScannerViewController *)controller value:(BOOL)value {
153
+ controller.hardwareButtonsEnabled = value;
154
+ }
155
+
152
156
  + (void)setConfigExtractedDocumentFormats:(SBSDKBarcodeScannerConfiguration * _Nonnull)config formats:(NSArray<NSString *> * _Nullable)formats {
153
157
  config.extractedDocumentFormats = [SBBarcodeScannerUtils barcodeDocumentFormatToNative:formats];
154
158
  }
@@ -45,6 +45,7 @@ RCT_EXPORT_VIEW_PROPERTY(cameraZoomRange, NSDictionary)
45
45
  RCT_EXPORT_VIEW_PROPERTY(cameraModule, NSString)
46
46
  RCT_EXPORT_VIEW_PROPERTY(minFocusDistanceLock, BOOL)
47
47
  RCT_EXPORT_VIEW_PROPERTY(scanningEnabled, BOOL)
48
+ RCT_EXPORT_VIEW_PROPERTY(hardwareButtonsEnabled, BOOL)
48
49
  RCT_EXPORT_VIEW_PROPERTY(overlayEnabled, BOOL)
49
50
  RCT_EXPORT_VIEW_PROPERTY(overlayPolygonColor, UIColor)
50
51
  RCT_EXPORT_VIEW_PROPERTY(overlayStrokeColor, UIColor)
@@ -22,7 +22,7 @@
22
22
  rejectBlock(@"ScanbotSDKError", message, nil);
23
23
  }
24
24
 
25
- - (void)didResolvePromise:(NSDictionary<NSString *,id> * _Nonnull)result {
25
+ - (void)didResolvePromise:(NSDictionary<NSString *,id> * _Nullable)result {
26
26
  resolveBlock(result);
27
27
  }
28
28
 
@@ -151,7 +151,7 @@ class BarcodeFormatCodabarConfiguration extends _utils.PartiallyConstructible {
151
151
  addAdditionalQuietZone = false;
152
152
  /**
153
153
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
154
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
154
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
155
155
 
156
156
  Default is 6
157
157
  */
@@ -203,7 +203,7 @@ class BarcodeFormatCodabarConfiguration extends _utils.PartiallyConstructible {
203
203
  }
204
204
 
205
205
  /**
206
- Code 11 barcode configuration. Add to scanner configuration to scan Code11 barcodes.
206
+ Code 11 barcode configuration. Add to scanner configuration to scan Code 11 barcodes.
207
207
  */
208
208
  exports.BarcodeFormatCodabarConfiguration = BarcodeFormatCodabarConfiguration;
209
209
  class BarcodeFormatCode11Configuration extends _utils.PartiallyConstructible {
@@ -231,7 +231,7 @@ class BarcodeFormatCode11Configuration extends _utils.PartiallyConstructible {
231
231
  addAdditionalQuietZone = false;
232
232
  /**
233
233
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
234
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
234
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
235
235
 
236
236
  Default is 6
237
237
  */
@@ -320,7 +320,7 @@ class BarcodeFormatCode39Configuration extends _utils.PartiallyConstructible {
320
320
  addAdditionalQuietZone = false;
321
321
  /**
322
322
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
323
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
323
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
324
324
 
325
325
  Default is 6
326
326
  */
@@ -454,7 +454,7 @@ class BarcodeFormatCode93Configuration extends _utils.PartiallyConstructible {
454
454
  addAdditionalQuietZone = false;
455
455
  /**
456
456
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
457
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
457
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
458
458
 
459
459
  Default is 6
460
460
  */
@@ -534,7 +534,7 @@ class BarcodeFormatCode128Configuration extends _utils.PartiallyConstructible {
534
534
  addAdditionalQuietZone = false;
535
535
  /**
536
536
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
537
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
537
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
538
538
 
539
539
  Default is 6
540
540
  */
@@ -618,7 +618,7 @@ class BarcodeFormatCode2Of5Configuration extends _utils.PartiallyConstructible {
618
618
  addAdditionalQuietZone = false;
619
619
  /**
620
620
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
621
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
621
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
622
622
 
623
623
  Default is 6
624
624
  */
@@ -734,7 +734,7 @@ class BarcodeFormatDataBarConfiguration extends _utils.PartiallyConstructible {
734
734
  addAdditionalQuietZone = false;
735
735
  /**
736
736
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
737
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
737
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
738
738
 
739
739
  Default is 6
740
740
  */
@@ -796,7 +796,7 @@ class BarcodeFormatDataBarExpandedConfiguration extends _utils.PartiallyConstruc
796
796
  addAdditionalQuietZone = false;
797
797
  /**
798
798
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
799
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
799
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
800
800
 
801
801
  Default is 6
802
802
  */
@@ -858,7 +858,7 @@ class BarcodeFormatDataBarLimitedConfiguration extends _utils.PartiallyConstruct
858
858
  addAdditionalQuietZone = false;
859
859
  /**
860
860
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
861
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
861
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
862
862
 
863
863
  Default is 6
864
864
  */
@@ -920,7 +920,7 @@ class BarcodeFormatItfConfiguration extends _utils.PartiallyConstructible {
920
920
  addAdditionalQuietZone = false;
921
921
  /**
922
922
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
923
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
923
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
924
924
 
925
925
  Default is 6
926
926
  */
@@ -1009,7 +1009,7 @@ class BarcodeFormatMsiPlesseyConfiguration extends _utils.PartiallyConstructible
1009
1009
  addAdditionalQuietZone = false;
1010
1010
  /**
1011
1011
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
1012
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
1012
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
1013
1013
 
1014
1014
  Default is 6
1015
1015
  */
@@ -1100,7 +1100,7 @@ class BarcodeFormatUpcEanConfiguration extends _utils.PartiallyConstructible {
1100
1100
  addAdditionalQuietZone = false;
1101
1101
  /**
1102
1102
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
1103
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
1103
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
1104
1104
 
1105
1105
  Default is 6
1106
1106
  */
@@ -1207,7 +1207,7 @@ class BarcodeFormatPharmaCodeConfiguration extends _utils.PartiallyConstructible
1207
1207
  addAdditionalQuietZone = false;
1208
1208
  /**
1209
1209
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
1210
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
1210
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
1211
1211
 
1212
1212
  Default is 6
1213
1213
  */
@@ -1671,7 +1671,7 @@ let BarcodeFormatFourStateConfigurationBase = exports.BarcodeFormatFourStateConf
1671
1671
  _BarcodeFormatFourStateConfigurationBase.From = From;
1672
1672
  })(BarcodeFormatFourStateConfigurationBase || (exports.BarcodeFormatFourStateConfigurationBase = BarcodeFormatFourStateConfigurationBase = {}));
1673
1673
  /**
1674
- can be either numeric or alphanumeric and is only relevant for Format Codes 59 and 62.
1674
+ Can be either numeric or alphanumeric and is only relevant for Format Codes 59 and 62.
1675
1675
 
1676
1676
  - `NUMERIC`:
1677
1677
  Numeric.
@@ -1707,7 +1707,7 @@ class BarcodeFormatAustraliaPostConfiguration extends _utils.PartiallyConstructi
1707
1707
  */
1708
1708
  addAdditionalQuietZone = false;
1709
1709
  /**
1710
- Can be either numeric or alpha-numeric and is only relevant for Format Codes 59 and 62.
1710
+ Can be either numeric or alphanumeric and is only relevant for Format Codes 59 and 62.
1711
1711
 
1712
1712
  Default is ALPHA_NUMERIC
1713
1713
  */
@@ -2004,7 +2004,7 @@ class BarcodeFormatGs1CompositeConfiguration extends _utils.PartiallyConstructib
2004
2004
  addAdditionalQuietZone = false;
2005
2005
  /**
2006
2006
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
2007
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
2007
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
2008
2008
 
2009
2009
  Default is 6
2010
2010
  */
@@ -2080,7 +2080,7 @@ class BarcodeFormatCommonOneDConfiguration extends _utils.PartiallyConstructible
2080
2080
  addAdditionalQuietZone = false;
2081
2081
  /**
2082
2082
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
2083
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
2083
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
2084
2084
 
2085
2085
  Default is 6
2086
2086
  */
@@ -2315,7 +2315,7 @@ class BarcodeFormatCommonConfiguration extends _utils.PartiallyConstructible {
2315
2315
  addAdditionalQuietZone = false;
2316
2316
  /**
2317
2317
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
2318
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
2318
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
2319
2319
 
2320
2320
  Default is 6
2321
2321
  */
@@ -113,7 +113,7 @@ exports.BarcodeFormats = BarcodeFormats;
113
113
  })(BarcodeFormats || (exports.BarcodeFormats = BarcodeFormats = {}));
114
114
  /**
115
115
  GS1 message handling options.
116
- The GS1 standard defines a a key-value format for business-centric data that can be encoded into many 1D and 2D barcode types.
116
+ The GS1 standard defines a key-value format for business-centric data that can be encoded into many 1D and 2D barcode types.
117
117
  https://ref.gs1.org/standards/genspecs/
118
118
 
119
119
  GS1 messages have two representations or formats: a human-readable format and a
@@ -73,7 +73,6 @@ const ScanbotBarcodeCameraView = exports.ScanbotBarcodeCameraView = /*#__PURE__*
73
73
  const result = event.nativeEvent.result;
74
74
  const selectionOverlayAutoSelectDisabled = props.selectionOverlayConfig?.overlayEnabled && !props.selectionOverlayConfig?.automaticSelectionEnabled;
75
75
  if (result) {
76
- // TODO check what we receive from ios
77
76
  const barcodeItems = _reactNative.Platform.OS === 'ios' ? JSON.parse(result) : result;
78
77
  if (!selectionOverlayAutoSelectDisabled) {
79
78
  (0, _imageRef.autorelease)(() => {
@@ -102,10 +101,15 @@ const ScanbotBarcodeCameraView = exports.ScanbotBarcodeCameraView = /*#__PURE__*
102
101
  const result = event.nativeEvent.result;
103
102
  const selectionOverlayAutoSelectDisabled = props.selectionOverlayConfig?.overlayEnabled && !props.selectionOverlayConfig?.automaticSelectionEnabled;
104
103
  if (selectionOverlayAutoSelectDisabled && result) {
105
- // TODO check what we receive from ios
106
- const barcodeItem = _reactNative.Platform.OS === 'ios' ? JSON.parse(result) : result;
104
+ let barcodeItems;
105
+ if (_reactNative.Platform.OS === 'ios') {
106
+ const parsedResult = JSON.parse(result);
107
+ barcodeItems = parsedResult.map(item => new _barcode.BarcodeItem(item));
108
+ } else {
109
+ barcodeItems = [new _barcode.BarcodeItem(result)];
110
+ }
107
111
  (0, _imageRef.autorelease)(() => {
108
- onBarcodeScannerResult([new _barcode.BarcodeItem(barcodeItem)]);
112
+ onBarcodeScannerResult(barcodeItems);
109
113
  });
110
114
  }
111
115
  }, [onBarcodeScannerResult, props.selectionOverlayConfig?.automaticSelectionEnabled, props.selectionOverlayConfig?.overlayEnabled]);
@@ -156,7 +160,8 @@ const ScanbotBarcodeCameraView = exports.ScanbotBarcodeCameraView = /*#__PURE__*
156
160
  //Other
157
161
  ,
158
162
  flashEnabled: props.flashEnabled,
159
- scanningEnabled: props.scanningEnabled
163
+ scanningEnabled: props.scanningEnabled,
164
+ hardwareButtonsEnabled: props.hardwareButtonsEnabled
160
165
  //View
161
166
  ,
162
167
  style: styles.container,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_barcode","_imageRef","_ScanbotBarcodeScannerViewNativeComponent","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ScanbotBarcodeCameraView","exports","forwardRef","onBarcodeScannerResult","props","forwardedRef","viewRef","useRef","boundBarcodeItemOverlayViews","Map","barcodeFormatsContainer","_type","undefined","regexFilter","minimumSizeScore","addAdditionalQuietZone","minimum1DQuietZoneSize","minimumTextLength","maximumTextLength","returnStartEnd","stripCheckDigits","checksum","code32","code39","pzn7","pzn8","tryCode39ExtendedMode","useCode39CheckDigit","gs1Handling","iata2of5","code25","industrial2of5","useIATA2OF5Checksum","checksumAlgorithms","ean8","ean13","upca","upce","extensions","minimumValue","allowNarrowBarsOnly","allowWideBarsOnly","strictMode","qr","microQr","rmqr","australiaPostCustomerFormat","formats","useImperativeHandle","freezeCamera","current","Commands","unfreezeCamera","_onBarcodeScannerResult","useCallback","event","result","nativeEvent","selectionOverlayAutoSelectDisabled","selectionOverlayConfig","overlayEnabled","automaticSelectionEnabled","barcodeItems","Platform","OS","JSON","parse","autorelease","map","item","BarcodeItem","barcodeItemOverlayViewBinder","barcode","barcodeItemUuid","text","upcEanExtension","format","barcodeItemNextBind","Date","now","bindingConfig","refreshRate","bindBarcodeItemOverlayView","stringify","_onBarcodeSelectionResult","barcodeItem","createElement","View","style","styles","container","pointerEvents","contentContainerStyle","children","finderEnabled","finderConfig","viewFinderEnabled","finderStrokeWidth","finderLineWidth","finderMinPadding","minPadding","finderStrokeColor","finderLineColor","finderOverlayColor","overlayColor","finderInset","finderRequiredAspectRatios","requiredAspectRatio","cameraZoomFactor","select","ios","cameraConfig","parseFloat","toFixed","android","cameraZoomRange","minZoom","maxZoom","minFocusDistanceLock","cameraModule","overlayPolygonColor","polygonColor","overlayStrokeColor","strokeColor","overlayTextFormat","textFormat","overlayTextColor","textColor","overlayTextContainerColor","textContainerColor","overlayLoadingTextValue","loadingTextValue","overlayBarcodeItemOverlayViewBinder","configFormatConfigurations","barcodeScannerConfiguration","barcodeFormatConfigurations","config","configExtractedDocumentFormats","extractedDocumentFormats","configOnlyAcceptDocuments","onlyAcceptDocuments","configReturnBarcodeImage","returnBarcodeImage","configEngineMode","engineMode","flashEnabled","scanningEnabled","ref","onSelectBarcodeResult","StyleSheet","create","flex","position","width","height","zIndex"],"sourceRoot":"../../../../src","sources":["component/barcode-camera-view/ScanbotBarcodeCameraView.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,yCAAA,GAAAL,uBAAA,CAAAC,OAAA;AAG0D,SAAAK,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAA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8B,EAAErI,KAAK,CAACkI,2BAA2B,EAAEI,wBAAyB;IAC5FC,yBAAyB,EAAEvI,KAAK,CAACkI,2BAA2B,EAAEM,mBAAoB;IAClFC,wBAAwB,EAAEzI,KAAK,CAACkI,2BAA2B,EAAEQ,kBAAmB;IAChFC,gBAAgB,EAAE3I,KAAK,CAACkI,2BAA2B,EAAEU;IACrD;IAAA;IACAC,YAAY,EAAE7I,KAAK,CAAC6I,YAAa;IACjCC,eAAe,EAAE9I,KAAK,CAAC8I;IACvB;IAAA;IACA1D,KAAK,EAAEC,MAAM,CAACC,SAAU;IACxByD,GAAG,EAAE7I;IACL;IAAA;IACAH,sBAAsB,EAAEkD,uBAAwB;IAChD+F,qBAAqB,EAAEhE;EAA0B,CAClD,CACG,CAAC;AAEX,CAAC,CAAC;AAEF,MAAMK,MAAM,GAAG4D,uBAAU,CAACC,MAAM,CAAC;EAC/B5D,SAAS,EAAE;IACT6D,IAAI,EAAE;EACR,CAAC;EACD3D,qBAAqB,EAAE;IACrB4D,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACdC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_barcode","_imageRef","_ScanbotBarcodeScannerViewNativeComponent","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ScanbotBarcodeCameraView","exports","forwardRef","onBarcodeScannerResult","props","forwardedRef","viewRef","useRef","boundBarcodeItemOverlayViews","Map","barcodeFormatsContainer","_type","undefined","regexFilter","minimumSizeScore","addAdditionalQuietZone","minimum1DQuietZoneSize","minimumTextLength","maximumTextLength","returnStartEnd","stripCheckDigits","checksum","code32","code39","pzn7","pzn8","tryCode39ExtendedMode","useCode39CheckDigit","gs1Handling","iata2of5","code25","industrial2of5","useIATA2OF5Checksum","checksumAlgorithms","ean8","ean13","upca","upce","extensions","minimumValue","allowNarrowBarsOnly","allowWideBarsOnly","strictMode","qr","microQr","rmqr","australiaPostCustomerFormat","formats","useImperativeHandle","freezeCamera","current","Commands","unfreezeCamera","_onBarcodeScannerResult","useCallback","event","result","nativeEvent","selectionOverlayAutoSelectDisabled","selectionOverlayConfig","overlayEnabled","automaticSelectionEnabled","barcodeItems","Platform","OS","JSON","parse","autorelease","map","item","BarcodeItem","barcodeItemOverlayViewBinder","barcode","barcodeItemUuid","text","upcEanExtension","format","barcodeItemNextBind","Date","now","bindingConfig","refreshRate","bindBarcodeItemOverlayView","stringify","_onBarcodeSelectionResult","parsedResult","createElement","View","style","styles","container","pointerEvents","contentContainerStyle","children","finderEnabled","finderConfig","viewFinderEnabled","finderStrokeWidth","finderLineWidth","finderMinPadding","minPadding","finderStrokeColor","finderLineColor","finderOverlayColor","overlayColor","finderInset","finderRequiredAspectRatios","requiredAspectRatio","cameraZoomFactor","select","ios","cameraConfig","parseFloat","toFixed","android","cameraZoomRange","minZoom","maxZoom","minFocusDistanceLock","cameraModule","overlayPolygonColor","polygonColor","overlayStrokeColor","strokeColor","overlayTextFormat","textFormat","overlayTextColor","textColor","overlayTextContainerColor","textContainerColor","overlayLoadingTextValue","loadingTextValue","overlayBarcodeItemOverlayViewBinder","configFormatConfigurations","barcodeScannerConfiguration","barcodeFormatConfigurations","config","configExtractedDocumentFormats","extractedDocumentFormats","configOnlyAcceptDocuments","onlyAcceptDocuments","configReturnBarcodeImage","returnBarcodeImage","configEngineMode","engineMode","flashEnabled","scanningEnabled","hardwareButtonsEnabled","ref","onSelectBarcodeResult","StyleSheet","create","flex","position","width","height","zIndex"],"sourceRoot":"../../../../src","sources":["component/barcode-camera-view/ScanbotBarcodeCameraView.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AAC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C5EC,uBAAuB,EAAE9H,KAAK,CAACuD,sBAAsB,EAAEwE,gBAAiB;IACxEC,mCAAmC,EACjChI,KAAK,CAACuD,sBAAsB,EAAEY,4BAA4B,KAAK3D;IAEjE;IAAA;IACAyH,0BAA0B,EAAEjI,KAAK,CAACkI,2BAA2B,EAAEC,2BAA2B,EAAEnE,GAAG,CAC5FoE,MAAM,KAAM;MACX,GAAG9H,uBAAuB;MAC1B,GAAG8H;IACL,CAAC,CACH,CAAE;IACFC,8BAA8B,EAAErI,KAAK,CAACkI,2BAA2B,EAAEI,wBAAyB;IAC5FC,yBAAyB,EAAEvI,KAAK,CAACkI,2BAA2B,EAAEM,mBAAoB;IAClFC,wBAAwB,EAAEzI,KAAK,CAACkI,2BAA2B,EAAEQ,kBAAmB;IAChFC,gBAAgB,EAAE3I,KAAK,CAACkI,2BAA2B,EAAEU;IACrD;IAAA;IACAC,YAAY,EAAE7I,KAAK,CAAC6I,YAAa;IACjCC,eAAe,EAAE9I,KAAK,CAAC8I,eAAgB;IACvCC,sBAAsB,EAAE/I,KAAK,CAAC+I;IAC9B;IAAA;IACA3D,KAAK,EAAEC,MAAM,CAACC,SAAU;IACxB0D,GAAG,EAAE9I;IACL;IAAA;IACAH,sBAAsB,EAAEkD,uBAAwB;IAChDgG,qBAAqB,EAAEjE;EAA0B,CAClD,CACG,CAAC;AAEX,CAAC,CAAC;AAEF,MAAMK,MAAM,GAAG6D,uBAAU,CAACC,MAAM,CAAC;EAC/B7D,SAAS,EAAE;IACT8D,IAAI,EAAE;EACR,CAAC;EACD5D,qBAAqB,EAAE;IACrB6D,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACdC,MAAM,EAAE;EACV;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","e","__esModule","default","_default","exports","codegenNativeComponent","Commands","codegenNativeCommands","supportedCommands"],"sourceRoot":"../../../../src","sources":["component/spec/ScanbotBarcodeScannerViewNativeComponent.ts"],"mappings":";;;;;;AAQA,IAAAA,sBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAuF9E,IAAAG,+BAAsB,EAAc,2BAA2B,CAAC;AAYxE,MAAMC,QAAQ,GAAAF,OAAA,CAAAE,QAAA,GAAG,IAAAC,8BAAqB,EAAiB;EAC5DC,iBAAiB,EAAE,CAAC,cAAc,EAAE,gBAAgB,EAAE,4BAA4B;AACpF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","e","__esModule","default","_default","exports","codegenNativeComponent","Commands","codegenNativeCommands","supportedCommands"],"sourceRoot":"../../../../src","sources":["component/spec/ScanbotBarcodeScannerViewNativeComponent.ts"],"mappings":";;;;;;AAQA,IAAAA,sBAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA6F,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAwF9E,IAAAG,+BAAsB,EAAc,2BAA2B,CAAC;AAYxE,MAAMC,QAAQ,GAAAF,OAAA,CAAAE,QAAA,GAAG,IAAAC,8BAAqB,EAAiB;EAC5DC,iBAAiB,EAAE,CAAC,cAAc,EAAE,gBAAgB,EAAE,4BAA4B;AACpF,CAAC,CAAC","ignoreList":[]}
@@ -27,7 +27,7 @@ Common field types.
27
27
  - `EXPIRY_DATE`:
28
28
  Document expiry date field.
29
29
  - `EYE_COLOR`:
30
- Person height field.
30
+ Person eye color field.
31
31
  - `HEIGHT`:
32
32
  Person height field.
33
33
  - `ISSUE_DATE`:
@@ -19,7 +19,7 @@ class ToJsonConfiguration extends _utils.PartiallyConstructible {
19
19
  */
20
20
  serializeImages = true;
21
21
  /**
22
- image serialization mode.
22
+ Image serialization mode.
23
23
 
24
24
  Default is REFERENCE
25
25
  */
@@ -147,7 +147,7 @@ export class BarcodeFormatCodabarConfiguration extends PartiallyConstructible {
147
147
  addAdditionalQuietZone = false;
148
148
  /**
149
149
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
150
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
150
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
151
151
 
152
152
  Default is 6
153
153
  */
@@ -199,7 +199,7 @@ export class BarcodeFormatCodabarConfiguration extends PartiallyConstructible {
199
199
  }
200
200
 
201
201
  /**
202
- Code 11 barcode configuration. Add to scanner configuration to scan Code11 barcodes.
202
+ Code 11 barcode configuration. Add to scanner configuration to scan Code 11 barcodes.
203
203
  */
204
204
  export class BarcodeFormatCode11Configuration extends PartiallyConstructible {
205
205
  _type = 'BarcodeFormatCode11Configuration';
@@ -226,7 +226,7 @@ export class BarcodeFormatCode11Configuration extends PartiallyConstructible {
226
226
  addAdditionalQuietZone = false;
227
227
  /**
228
228
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
229
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
229
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
230
230
 
231
231
  Default is 6
232
232
  */
@@ -314,7 +314,7 @@ export class BarcodeFormatCode39Configuration extends PartiallyConstructible {
314
314
  addAdditionalQuietZone = false;
315
315
  /**
316
316
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
317
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
317
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
318
318
 
319
319
  Default is 6
320
320
  */
@@ -447,7 +447,7 @@ export class BarcodeFormatCode93Configuration extends PartiallyConstructible {
447
447
  addAdditionalQuietZone = false;
448
448
  /**
449
449
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
450
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
450
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
451
451
 
452
452
  Default is 6
453
453
  */
@@ -526,7 +526,7 @@ export class BarcodeFormatCode128Configuration extends PartiallyConstructible {
526
526
  addAdditionalQuietZone = false;
527
527
  /**
528
528
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
529
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
529
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
530
530
 
531
531
  Default is 6
532
532
  */
@@ -609,7 +609,7 @@ export class BarcodeFormatCode2Of5Configuration extends PartiallyConstructible {
609
609
  addAdditionalQuietZone = false;
610
610
  /**
611
611
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
612
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
612
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
613
613
 
614
614
  Default is 6
615
615
  */
@@ -724,7 +724,7 @@ export class BarcodeFormatDataBarConfiguration extends PartiallyConstructible {
724
724
  addAdditionalQuietZone = false;
725
725
  /**
726
726
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
727
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
727
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
728
728
 
729
729
  Default is 6
730
730
  */
@@ -785,7 +785,7 @@ export class BarcodeFormatDataBarExpandedConfiguration extends PartiallyConstruc
785
785
  addAdditionalQuietZone = false;
786
786
  /**
787
787
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
788
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
788
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
789
789
 
790
790
  Default is 6
791
791
  */
@@ -846,7 +846,7 @@ export class BarcodeFormatDataBarLimitedConfiguration extends PartiallyConstruct
846
846
  addAdditionalQuietZone = false;
847
847
  /**
848
848
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
849
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
849
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
850
850
 
851
851
  Default is 6
852
852
  */
@@ -907,7 +907,7 @@ export class BarcodeFormatItfConfiguration extends PartiallyConstructible {
907
907
  addAdditionalQuietZone = false;
908
908
  /**
909
909
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
910
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
910
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
911
911
 
912
912
  Default is 6
913
913
  */
@@ -996,7 +996,7 @@ export class BarcodeFormatMsiPlesseyConfiguration extends PartiallyConstructible
996
996
  addAdditionalQuietZone = false;
997
997
  /**
998
998
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
999
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
999
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
1000
1000
 
1001
1001
  Default is 6
1002
1002
  */
@@ -1086,7 +1086,7 @@ export class BarcodeFormatUpcEanConfiguration extends PartiallyConstructible {
1086
1086
  addAdditionalQuietZone = false;
1087
1087
  /**
1088
1088
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
1089
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
1089
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
1090
1090
 
1091
1091
  Default is 6
1092
1092
  */
@@ -1192,7 +1192,7 @@ export class BarcodeFormatPharmaCodeConfiguration extends PartiallyConstructible
1192
1192
  addAdditionalQuietZone = false;
1193
1193
  /**
1194
1194
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
1195
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
1195
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
1196
1196
 
1197
1197
  Default is 6
1198
1198
  */
@@ -1649,7 +1649,7 @@ export let BarcodeFormatFourStateConfigurationBase;
1649
1649
  _BarcodeFormatFourStateConfigurationBase.From = From;
1650
1650
  })(BarcodeFormatFourStateConfigurationBase || (BarcodeFormatFourStateConfigurationBase = {}));
1651
1651
  /**
1652
- can be either numeric or alphanumeric and is only relevant for Format Codes 59 and 62.
1652
+ Can be either numeric or alphanumeric and is only relevant for Format Codes 59 and 62.
1653
1653
 
1654
1654
  - `NUMERIC`:
1655
1655
  Numeric.
@@ -1685,7 +1685,7 @@ export class BarcodeFormatAustraliaPostConfiguration extends PartiallyConstructi
1685
1685
  */
1686
1686
  addAdditionalQuietZone = false;
1687
1687
  /**
1688
- Can be either numeric or alpha-numeric and is only relevant for Format Codes 59 and 62.
1688
+ Can be either numeric or alphanumeric and is only relevant for Format Codes 59 and 62.
1689
1689
 
1690
1690
  Default is ALPHA_NUMERIC
1691
1691
  */
@@ -1976,7 +1976,7 @@ export class BarcodeFormatGs1CompositeConfiguration extends PartiallyConstructib
1976
1976
  addAdditionalQuietZone = false;
1977
1977
  /**
1978
1978
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
1979
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
1979
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
1980
1980
 
1981
1981
  Default is 6
1982
1982
  */
@@ -2051,7 +2051,7 @@ export class BarcodeFormatCommonOneDConfiguration extends PartiallyConstructible
2051
2051
  addAdditionalQuietZone = false;
2052
2052
  /**
2053
2053
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
2054
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
2054
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
2055
2055
 
2056
2056
  Default is 6
2057
2057
  */
@@ -2283,7 +2283,7 @@ export class BarcodeFormatCommonConfiguration extends PartiallyConstructible {
2283
2283
  addAdditionalQuietZone = false;
2284
2284
  /**
2285
2285
  Minimum quiet zone size on the left and right sides of a 1D barcode, measured in number of modules.
2286
- The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey, and Code11.
2286
+ The quiet zone is only for 1D barcodes with weak start/stop patterns, i.e. Iata2Of5, Industrial2Of5, Code25, Itf, Codabar, MsiPlessey and Code11.
2287
2287
 
2288
2288
  Default is 6
2289
2289
  */
@@ -107,7 +107,7 @@ export class BarcodeFormats extends PartiallyConstructible {
107
107
  })(BarcodeFormats || (BarcodeFormats = {}));
108
108
  /**
109
109
  GS1 message handling options.
110
- The GS1 standard defines a a key-value format for business-centric data that can be encoded into many 1D and 2D barcode types.
110
+ The GS1 standard defines a key-value format for business-centric data that can be encoded into many 1D and 2D barcode types.
111
111
  https://ref.gs1.org/standards/genspecs/
112
112
 
113
113
  GS1 messages have two representations or formats: a human-readable format and a
@@ -65,7 +65,6 @@ export const ScanbotBarcodeCameraView = /*#__PURE__*/forwardRef(({
65
65
  const result = event.nativeEvent.result;
66
66
  const selectionOverlayAutoSelectDisabled = props.selectionOverlayConfig?.overlayEnabled && !props.selectionOverlayConfig?.automaticSelectionEnabled;
67
67
  if (result) {
68
- // TODO check what we receive from ios
69
68
  const barcodeItems = Platform.OS === 'ios' ? JSON.parse(result) : result;
70
69
  if (!selectionOverlayAutoSelectDisabled) {
71
70
  autorelease(() => {
@@ -94,10 +93,15 @@ export const ScanbotBarcodeCameraView = /*#__PURE__*/forwardRef(({
94
93
  const result = event.nativeEvent.result;
95
94
  const selectionOverlayAutoSelectDisabled = props.selectionOverlayConfig?.overlayEnabled && !props.selectionOverlayConfig?.automaticSelectionEnabled;
96
95
  if (selectionOverlayAutoSelectDisabled && result) {
97
- // TODO check what we receive from ios
98
- const barcodeItem = Platform.OS === 'ios' ? JSON.parse(result) : result;
96
+ let barcodeItems;
97
+ if (Platform.OS === 'ios') {
98
+ const parsedResult = JSON.parse(result);
99
+ barcodeItems = parsedResult.map(item => new BarcodeItem(item));
100
+ } else {
101
+ barcodeItems = [new BarcodeItem(result)];
102
+ }
99
103
  autorelease(() => {
100
- onBarcodeScannerResult([new BarcodeItem(barcodeItem)]);
104
+ onBarcodeScannerResult(barcodeItems);
101
105
  });
102
106
  }
103
107
  }, [onBarcodeScannerResult, props.selectionOverlayConfig?.automaticSelectionEnabled, props.selectionOverlayConfig?.overlayEnabled]);
@@ -148,7 +152,8 @@ export const ScanbotBarcodeCameraView = /*#__PURE__*/forwardRef(({
148
152
  //Other
149
153
  ,
150
154
  flashEnabled: props.flashEnabled,
151
- scanningEnabled: props.scanningEnabled
155
+ scanningEnabled: props.scanningEnabled,
156
+ hardwareButtonsEnabled: props.hardwareButtonsEnabled
152
157
  //View
153
158
  ,
154
159
  style: styles.container,