react-native-scanbot-barcode-scanner-sdk 6.2.1 → 6.2.2-beta.2
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/Libraries.txt +32 -32
- package/RNScanbotBarcodeSDK.podspec +1 -1
- package/android/gradle.properties +1 -1
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcode_scanner_view/ScanbotBarcodeScannerViewManager.kt +5 -0
- package/android/src/paper/com/facebook/react/viewmanagers/ScanbotBarcodeScannerViewManagerDelegate.java +3 -0
- package/android/src/paper/com/facebook/react/viewmanagers/ScanbotBarcodeScannerViewManagerInterface.java +1 -0
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerLegacyView.m +4 -0
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerView.mm +3 -0
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewControllerWrapper.h +3 -0
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewControllerWrapper.m +4 -0
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewManager.mm +1 -0
- package/lib/commonjs/component/barcode-camera-view/ScanbotBarcodeCameraView.js +2 -3
- package/lib/commonjs/component/barcode-camera-view/ScanbotBarcodeCameraView.js.map +1 -1
- package/lib/commonjs/component/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +1 -1
- package/lib/module/component/barcode-camera-view/ScanbotBarcodeCameraView.js +2 -3
- package/lib/module/component/barcode-camera-view/ScanbotBarcodeCameraView.js.map +1 -1
- package/lib/module/component/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +1 -1
- package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraView.d.ts.map +1 -1
- package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.d.ts +5 -0
- package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.d.ts.map +1 -1
- package/lib/typescript/src/component/spec/ScanbotBarcodeScannerViewNativeComponent.d.ts +1 -0
- package/lib/typescript/src/component/spec/ScanbotBarcodeScannerViewNativeComponent.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/component/barcode-camera-view/ScanbotBarcodeCameraView.tsx +1 -2
- package/src/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.ts +5 -0
- package/src/component/spec/ScanbotBarcodeScannerViewNativeComponent.ts +1 -0
package/Libraries.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Open Source libraries used in the Scanbot Barcode SDK for React Native version 6.2.
|
|
1
|
+
Open Source libraries used in the Scanbot Barcode SDK for React Native version 6.2.2
|
|
2
2
|
|
|
3
|
-
Open Source libraries used in ScanbotBarcodeScannerSDK for iOS version 6.2.
|
|
3
|
+
Open Source libraries used in ScanbotBarcodeScannerSDK for iOS version 6.2.1:
|
|
4
4
|
|
|
5
5
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
|
6
6
|
|
|
@@ -77,7 +77,7 @@ record keeping.)
|
|
|
77
77
|
* are met:
|
|
78
78
|
*
|
|
79
79
|
* 1. Redistributions of source code must retain the above copyright
|
|
80
|
-
* notice, this list of conditions and the following disclaimer.
|
|
80
|
+
* notice, this list of conditions and the following disclaimer.
|
|
81
81
|
*
|
|
82
82
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
83
83
|
* notice, this list of conditions and the following disclaimer in
|
|
@@ -132,21 +132,21 @@ record keeping.)
|
|
|
132
132
|
* This package is an SSL implementation written
|
|
133
133
|
* by Eric Young (eay@cryptsoft.com).
|
|
134
134
|
* The implementation was written so as to conform with Netscapes SSL.
|
|
135
|
-
*
|
|
135
|
+
*
|
|
136
136
|
* This library is free for commercial and non-commercial use as long as
|
|
137
137
|
* the following conditions are aheared to. The following conditions
|
|
138
138
|
* apply to all code found in this distribution, be it the RC4, RSA,
|
|
139
139
|
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
|
|
140
140
|
* included with this distribution is covered by the same copyright terms
|
|
141
141
|
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
|
|
142
|
-
*
|
|
142
|
+
*
|
|
143
143
|
* Copyright remains Eric Young's, and as such any Copyright notices in
|
|
144
144
|
* the code are not to be removed.
|
|
145
145
|
* If this package is used in a product, Eric Young should be given attribution
|
|
146
146
|
* as the author of the parts of the library used.
|
|
147
147
|
* This can be in the form of a textual message at program startup or
|
|
148
148
|
* in documentation (online or textual) provided with the package.
|
|
149
|
-
*
|
|
149
|
+
*
|
|
150
150
|
* Redistribution and use in source and binary forms, with or without
|
|
151
151
|
* modification, are permitted provided that the following conditions
|
|
152
152
|
* are met:
|
|
@@ -161,10 +161,10 @@ record keeping.)
|
|
|
161
161
|
* Eric Young (eay@cryptsoft.com)"
|
|
162
162
|
* The word 'cryptographic' can be left out if the rouines from the library
|
|
163
163
|
* being used are not cryptographic related :-).
|
|
164
|
-
* 4. If you include any Windows specific code (or a derivative thereof) from
|
|
164
|
+
* 4. If you include any Windows specific code (or a derivative thereof) from
|
|
165
165
|
* the apps directory (application code) you must include an acknowledgement:
|
|
166
166
|
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
|
|
167
|
-
*
|
|
167
|
+
*
|
|
168
168
|
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
|
|
169
169
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
170
170
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
@@ -176,7 +176,7 @@ record keeping.)
|
|
|
176
176
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
177
177
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
178
178
|
* SUCH DAMAGE.
|
|
179
|
-
*
|
|
179
|
+
*
|
|
180
180
|
* The licence and distribution terms for any publically available version or
|
|
181
181
|
* derivative of this code cannot be changed. i.e. this code cannot simply be
|
|
182
182
|
* copied and put under another distribution licence
|
|
@@ -1015,7 +1015,7 @@ JSON for Modern C++
|
|
|
1015
1015
|
Version v3.11.2
|
|
1016
1016
|
(https://github.com/nlohmann/json)
|
|
1017
1017
|
|
|
1018
|
-
MIT License
|
|
1018
|
+
MIT License
|
|
1019
1019
|
|
|
1020
1020
|
Copyright (c) 2013-2022 Niels Lohmann
|
|
1021
1021
|
|
|
@@ -1086,18 +1086,18 @@ Copyright (C) 2007-2009 Antony Dovgal
|
|
|
1086
1086
|
|
|
1087
1087
|
This software is provided 'as-is', without any express or implied warranty.
|
|
1088
1088
|
|
|
1089
|
-
In no event will the authors be held liable for any damages arising from the
|
|
1089
|
+
In no event will the authors be held liable for any damages arising from the
|
|
1090
1090
|
use of this software.
|
|
1091
1091
|
|
|
1092
|
-
Permission is granted to anyone to use this software for any purpose,including
|
|
1093
|
-
commercial applications, and to alter it and redistribute it freely, subject
|
|
1092
|
+
Permission is granted to anyone to use this software for any purpose,including
|
|
1093
|
+
commercial applications, and to alter it and redistribute it freely, subject
|
|
1094
1094
|
to the following restrictions:
|
|
1095
1095
|
|
|
1096
|
-
1. The origin of this software must not be misrepresented; you must not claim
|
|
1097
|
-
that you wrote the original software. If you use this software in a
|
|
1098
|
-
product, an acknowledgment in the product documentation would be
|
|
1096
|
+
1. The origin of this software must not be misrepresented; you must not claim
|
|
1097
|
+
that you wrote the original software. If you use this software in a
|
|
1098
|
+
product, an acknowledgment in the product documentation would be
|
|
1099
1099
|
appreciated but is not required.
|
|
1100
|
-
2. Altered source versions must be plainly marked as such, and must not be
|
|
1100
|
+
2. Altered source versions must be plainly marked as such, and must not be
|
|
1101
1101
|
misrepresented as being the original software.
|
|
1102
1102
|
3. This notice may not be removed or altered from any source distribution.
|
|
1103
1103
|
|
|
@@ -1398,7 +1398,7 @@ Version 4.6.0
|
|
|
1398
1398
|
Copyright © 1988-1997 Sam Leffler\
|
|
1399
1399
|
Copyright © 1991-1997 Silicon Graphics, Inc.
|
|
1400
1400
|
|
|
1401
|
-
Permission to use, copy, modify, distribute, and sell this software and
|
|
1401
|
+
Permission to use, copy, modify, distribute, and sell this software and
|
|
1402
1402
|
its documentation for any purpose is hereby granted without fee, provided
|
|
1403
1403
|
that (i) the above copyright notices and this permission notice appear in
|
|
1404
1404
|
all copies of the software and related documentation, and (ii) the names of
|
|
@@ -1406,15 +1406,15 @@ Sam Leffler and Silicon Graphics may not be used in any advertising or
|
|
|
1406
1406
|
publicity relating to the software without the specific, prior written
|
|
1407
1407
|
permission of Sam Leffler and Silicon Graphics.
|
|
1408
1408
|
|
|
1409
|
-
THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
|
1410
|
-
EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
|
1411
|
-
WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
1409
|
+
THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
|
1410
|
+
EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
|
1411
|
+
WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
1412
1412
|
|
|
1413
1413
|
IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
|
1414
1414
|
ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
|
1415
1415
|
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
1416
|
-
WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
|
1417
|
-
LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
|
1416
|
+
WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
|
1417
|
+
LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
|
1418
1418
|
OF THIS SOFTWARE.
|
|
1419
1419
|
|
|
1420
1420
|
|
|
@@ -1727,7 +1727,7 @@ Version 1.1.1t
|
|
|
1727
1727
|
* are met:
|
|
1728
1728
|
*
|
|
1729
1729
|
* 1. Redistributions of source code must retain the above copyright
|
|
1730
|
-
* notice, this list of conditions and the following disclaimer.
|
|
1730
|
+
* notice, this list of conditions and the following disclaimer.
|
|
1731
1731
|
*
|
|
1732
1732
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
1733
1733
|
* notice, this list of conditions and the following disclaimer in
|
|
@@ -1782,21 +1782,21 @@ Version 1.1.1t
|
|
|
1782
1782
|
* This package is an SSL implementation written
|
|
1783
1783
|
* by Eric Young (eay@cryptsoft.com).
|
|
1784
1784
|
* The implementation was written so as to conform with Netscapes SSL.
|
|
1785
|
-
*
|
|
1785
|
+
*
|
|
1786
1786
|
* This library is free for commercial and non-commercial use as long as
|
|
1787
1787
|
* the following conditions are aheared to. The following conditions
|
|
1788
1788
|
* apply to all code found in this distribution, be it the RC4, RSA,
|
|
1789
1789
|
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
|
|
1790
1790
|
* included with this distribution is covered by the same copyright terms
|
|
1791
1791
|
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
|
|
1792
|
-
*
|
|
1792
|
+
*
|
|
1793
1793
|
* Copyright remains Eric Young's, and as such any Copyright notices in
|
|
1794
1794
|
* the code are not to be removed.
|
|
1795
1795
|
* If this package is used in a product, Eric Young should be given attribution
|
|
1796
1796
|
* as the author of the parts of the library used.
|
|
1797
1797
|
* This can be in the form of a textual message at program startup or
|
|
1798
1798
|
* in documentation (online or textual) provided with the package.
|
|
1799
|
-
*
|
|
1799
|
+
*
|
|
1800
1800
|
* Redistribution and use in source and binary forms, with or without
|
|
1801
1801
|
* modification, are permitted provided that the following conditions
|
|
1802
1802
|
* are met:
|
|
@@ -1811,10 +1811,10 @@ Version 1.1.1t
|
|
|
1811
1811
|
* Eric Young (eay@cryptsoft.com)"
|
|
1812
1812
|
* The word 'cryptographic' can be left out if the rouines from the library
|
|
1813
1813
|
* being used are not cryptographic related :-).
|
|
1814
|
-
* 4. If you include any Windows specific code (or a derivative thereof) from
|
|
1814
|
+
* 4. If you include any Windows specific code (or a derivative thereof) from
|
|
1815
1815
|
* the apps directory (application code) you must include an acknowledgement:
|
|
1816
1816
|
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
|
|
1817
|
-
*
|
|
1817
|
+
*
|
|
1818
1818
|
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
|
|
1819
1819
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
1820
1820
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
@@ -1826,7 +1826,7 @@ Version 1.1.1t
|
|
|
1826
1826
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
1827
1827
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
1828
1828
|
* SUCH DAMAGE.
|
|
1829
|
-
*
|
|
1829
|
+
*
|
|
1830
1830
|
* The licence and distribution terms for any publically available version or
|
|
1831
1831
|
* derivative of this code cannot be changed. i.e. this code cannot simply be
|
|
1832
1832
|
* copied and put under another distribution licence
|
|
@@ -1844,7 +1844,7 @@ Version v1.9.2
|
|
|
1844
1844
|
|
|
1845
1845
|
The MIT License (MIT)
|
|
1846
1846
|
|
|
1847
|
-
Copyright (c) 2016 Gabi Melman.
|
|
1847
|
+
Copyright (c) 2016 Gabi Melman.
|
|
1848
1848
|
|
|
1849
1849
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1850
1850
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -2749,7 +2749,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
2749
2749
|
|
|
2750
2750
|
------------------------------------------------------------------------------------------------------------------------
|
|
2751
2751
|
|
|
2752
|
-
Open Source libraries used in the Scanbot Barcode Scanner SDK for Android version 6.2.
|
|
2752
|
+
Open Source libraries used in the Scanbot Barcode Scanner SDK for Android version 6.2.2
|
|
2753
2753
|
CWAC-Camera
|
|
2754
2754
|
|
|
2755
2755
|
Version 0.6.42
|
|
@@ -312,6 +312,11 @@ class ScanbotBarcodeScannerViewManager : SimpleViewManager<ScanbotBarcodeScanner
|
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
+
@ReactProp(name = "hardwareButtonsEnabled")
|
|
316
|
+
override fun setHardwareButtonsEnabled(view: ScanbotBarcodeScannerView?, value: Boolean) {
|
|
317
|
+
// iOS only
|
|
318
|
+
}
|
|
319
|
+
|
|
315
320
|
// endregion
|
|
316
321
|
}
|
|
317
322
|
|
|
@@ -58,6 +58,9 @@ public class ScanbotBarcodeScannerViewManagerDelegate<T extends View, U extends
|
|
|
58
58
|
case "cameraModule":
|
|
59
59
|
mViewManager.setCameraModule(view, value == null ? "BACK" : (String) value);
|
|
60
60
|
break;
|
|
61
|
+
case "hardwareButtonsEnabled":
|
|
62
|
+
mViewManager.setHardwareButtonsEnabled(view, value == null ? true : (boolean) value);
|
|
63
|
+
break;
|
|
61
64
|
case "scanningEnabled":
|
|
62
65
|
mViewManager.setScanningEnabled(view, value == null ? true : (boolean) value);
|
|
63
66
|
break;
|
|
@@ -25,6 +25,7 @@ public interface ScanbotBarcodeScannerViewManagerInterface<T extends View> {
|
|
|
25
25
|
void setCameraZoomFactor(T view, float value);
|
|
26
26
|
void setCameraZoomRange(T view, @Nullable ReadableMap value);
|
|
27
27
|
void setCameraModule(T view, @Nullable String value);
|
|
28
|
+
void setHardwareButtonsEnabled(T view, boolean value);
|
|
28
29
|
void setScanningEnabled(T view, boolean value);
|
|
29
30
|
void setDetectorConfig(T view, @Nullable ReadableMap value);
|
|
30
31
|
void setMinFocusDistanceLock(T view, boolean value);
|
|
@@ -211,6 +211,10 @@
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
+
- (void) setHardwareButtonsEnabled:(BOOL) value {
|
|
215
|
+
[RNScanbotBarcodeScannerViewControllerWrapper setHardwareButtonsEnabled:self.scannerViewController value:value];
|
|
216
|
+
}
|
|
217
|
+
|
|
214
218
|
- (void) freezeCamera {
|
|
215
219
|
[RNScanbotBarcodeScannerViewControllerWrapper freezeCamera:self.scannerViewController];
|
|
216
220
|
}
|
|
@@ -99,6 +99,9 @@ using namespace facebook::react;
|
|
|
99
99
|
if(oldViewProps.scanningEnabled != newViewProps.scanningEnabled){
|
|
100
100
|
self.scanningEnabled = newViewProps.scanningEnabled;
|
|
101
101
|
}
|
|
102
|
+
if(oldViewProps.hardwareButtonsEnabled != newViewProps.hardwareButtonsEnabled){
|
|
103
|
+
[RNScanbotBarcodeScannerViewControllerWrapper setHardwareButtonsEnabled:self.scannerViewController value:newViewProps.hardwareButtonsEnabled];
|
|
104
|
+
}
|
|
102
105
|
// MARK: FinderConfig Props
|
|
103
106
|
if(oldViewProps.finderEnabled != newViewProps.finderEnabled){
|
|
104
107
|
[RNScanbotBarcodeScannerViewControllerWrapper setFinderEnabled:finderConfig value:newViewProps.finderEnabled];
|
|
@@ -102,6 +102,9 @@
|
|
|
102
102
|
+ (void) setOverlayTextFormat:(SBSDKBarcodeScannerViewController* _Nonnull)controller
|
|
103
103
|
value:(SBSDKBarcodeOverlayFormat)value;
|
|
104
104
|
|
|
105
|
+
+ (void) setHardwareButtonsEnabled:(SBSDKBarcodeScannerViewController* _Nonnull)controller
|
|
106
|
+
value:(BOOL)value;
|
|
107
|
+
|
|
105
108
|
+ (NSString * _Nullable) jsonFromResultOrNil:(NSArray<SBSDKBarcodeScannerResult *> * _Nonnull)codes;
|
|
106
109
|
|
|
107
110
|
+ (void) freezeCamera:(SBSDKBarcodeScannerViewController* _Nonnull)controller;
|
|
@@ -189,6 +189,10 @@
|
|
|
189
189
|
config.trackingOverlayController.configuration.isAutomaticSelectionEnabled = value;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
+
+ (void)setHardwareButtonsEnabled:(SBSDKBarcodeScannerViewController *)controller value:(BOOL)value {
|
|
193
|
+
controller.hardwareButtonsEnabled = value;
|
|
194
|
+
}
|
|
195
|
+
|
|
192
196
|
+ (void)addBarcodeItemOverlayViewInitialBinderInDictionary:(NSMutableDictionary * _Nullable)dictionary
|
|
193
197
|
loadingText:(NSString * _Nullable)loadingText
|
|
194
198
|
barcodes:(NSArray<SBSDKBarcodeScannerResult *> * _Nonnull)barcodes {
|
|
@@ -46,6 +46,7 @@ RCT_EXPORT_VIEW_PROPERTY(cameraModule, NSString)
|
|
|
46
46
|
RCT_EXPORT_VIEW_PROPERTY(minFocusDistanceLock, BOOL)
|
|
47
47
|
RCT_EXPORT_VIEW_PROPERTY(detectorConfig, NSDictionary)
|
|
48
48
|
RCT_EXPORT_VIEW_PROPERTY(scanningEnabled, BOOL)
|
|
49
|
+
RCT_EXPORT_VIEW_PROPERTY(hardwareButtonsEnabled, BOOL)
|
|
49
50
|
RCT_EXPORT_VIEW_PROPERTY(overlayEnabled, BOOL)
|
|
50
51
|
RCT_EXPORT_VIEW_PROPERTY(overlayPolygonColor, UIColor)
|
|
51
52
|
RCT_EXPORT_VIEW_PROPERTY(overlayStrokeColor, UIColor)
|
|
@@ -19,13 +19,11 @@ const ScanbotBarcodeCameraView = exports.ScanbotBarcodeCameraView = /*#__PURE__*
|
|
|
19
19
|
return {
|
|
20
20
|
freezeCamera() {
|
|
21
21
|
if (viewRef.current) {
|
|
22
|
-
//@ts-ignore
|
|
23
22
|
_ScanbotBarcodeScannerViewNativeComponent.Commands.freezeCamera(viewRef.current);
|
|
24
23
|
}
|
|
25
24
|
},
|
|
26
25
|
unfreezeCamera() {
|
|
27
26
|
if (viewRef.current) {
|
|
28
|
-
//@ts-ignore
|
|
29
27
|
_ScanbotBarcodeScannerViewNativeComponent.Commands.unfreezeCamera(viewRef.current);
|
|
30
28
|
}
|
|
31
29
|
}
|
|
@@ -112,7 +110,8 @@ const ScanbotBarcodeCameraView = exports.ScanbotBarcodeCameraView = /*#__PURE__*
|
|
|
112
110
|
//Other
|
|
113
111
|
,
|
|
114
112
|
flashEnabled: props.flashEnabled,
|
|
115
|
-
scanningEnabled: props.scanningEnabled
|
|
113
|
+
scanningEnabled: props.scanningEnabled,
|
|
114
|
+
hardwareButtonsEnabled: props.hardwareButtonsEnabled
|
|
116
115
|
//View
|
|
117
116
|
,
|
|
118
117
|
style: styles.container,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_ScanbotBarcodeScannerViewNativeComponent","_reactNative","_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","useImperativeHandle","freezeCamera","current","Commands","unfreezeCamera","_onBarcodeScannerResult","useCallback","event","result","nativeEvent","selectionOverlayAutoSelectDisabled","selectionOverlayConfig","overlayEnabled","automaticSelectionEnabled","barcodeScannerResult","Platform","OS","JSON","parse","barcodeItemOverlayViewBinder","barcode","barcodes","barcodeItemUuid","textWithExtension","type","barcodeItemNextBind","undefined","Date","now","bindingConfig","refreshRate","bindBarcodeItemOverlayView","stringify","_onBarcodeSelectionResult","barcodeItemResult","barcodeResult","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","detectorConfig","overlayPolygonColor","polygonColor","overlayStrokeColor","strokeColor","overlayTextFormat","textFormat","overlayTextColor","textColor","overlayTextContainerColor","textContainerColor","overlayLoadingTextValue","loadingTextValue","overlayBarcodeItemOverlayViewBinder","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,yCAAA,GAAAF,uBAAA,CAAAC,OAAA;AAOA,IAAAE,YAAA,GAAAF,OAAA;AAAgF,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAIzE,MAAMW,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,gBAAG,IAAAE,iBAAU,EAGhD,CAAC;EAAEC,sBAAsB;EAAE,GAAGC;AAAM,CAAC,EAAEC,YAAY,KAAK;EACxD,MAAMC,OAAO,GAAG,IAAAC,aAAM,EAAC,IAAI,CAAC;EAC5B,MAAMC,4BAA4B,GAAG,IAAAD,aAAM,EAAsB,IAAIE,GAAG,CAAC,CAAC,CAAC;EAE3E,IAAAC,0BAAmB,EAACL,YAAY,EAAE,MAAM;IACtC,OAAO;MACLM,YAAYA,CAAA,EAAG;QACb,IAAIL,OAAO,CAACM,OAAO,EAAE;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_ScanbotBarcodeScannerViewNativeComponent","_reactNative","_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","useImperativeHandle","freezeCamera","current","Commands","unfreezeCamera","_onBarcodeScannerResult","useCallback","event","result","nativeEvent","selectionOverlayAutoSelectDisabled","selectionOverlayConfig","overlayEnabled","automaticSelectionEnabled","barcodeScannerResult","Platform","OS","JSON","parse","barcodeItemOverlayViewBinder","barcode","barcodes","barcodeItemUuid","textWithExtension","type","barcodeItemNextBind","undefined","Date","now","bindingConfig","refreshRate","bindBarcodeItemOverlayView","stringify","_onBarcodeSelectionResult","barcodeItemResult","barcodeResult","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","detectorConfig","overlayPolygonColor","polygonColor","overlayStrokeColor","strokeColor","overlayTextFormat","textFormat","overlayTextColor","textColor","overlayTextContainerColor","textContainerColor","overlayLoadingTextValue","loadingTextValue","overlayBarcodeItemOverlayViewBinder","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,yCAAA,GAAAF,uBAAA,CAAAC,OAAA;AAOA,IAAAE,YAAA,GAAAF,OAAA;AAAgF,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QA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kD,uBAAU,CAACC,MAAM,CAAC;EAC/BlD,SAAS,EAAE;IACTmD,IAAI,EAAE;EACR,CAAC;EACDjD,qBAAqB,EAAE;IACrBkD,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":["_codegenNativeComponent","_interopRequireDefault","require","_codegenNativeCommands","e","__esModule","default","_default","exports","codegenNativeComponent","Commands","codegenNativeCommands","supportedCommands"],"sourceRoot":"../../../../src","sources":["component/spec/ScanbotBarcodeScannerViewNativeComponent.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AASA,IAAAC,sBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA2F,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,
|
|
1
|
+
{"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","_codegenNativeCommands","e","__esModule","default","_default","exports","codegenNativeComponent","Commands","codegenNativeCommands","supportedCommands"],"sourceRoot":"../../../../src","sources":["component/spec/ScanbotBarcodeScannerViewNativeComponent.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,sBAAA,CAAAC,OAAA;AASA,IAAAC,sBAAA,GAAAF,sBAAA,CAAAC,OAAA;AAA2F,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAyD5E,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":[]}
|
|
@@ -11,13 +11,11 @@ export const ScanbotBarcodeCameraView = /*#__PURE__*/forwardRef(({
|
|
|
11
11
|
return {
|
|
12
12
|
freezeCamera() {
|
|
13
13
|
if (viewRef.current) {
|
|
14
|
-
//@ts-ignore
|
|
15
14
|
Commands.freezeCamera(viewRef.current);
|
|
16
15
|
}
|
|
17
16
|
},
|
|
18
17
|
unfreezeCamera() {
|
|
19
18
|
if (viewRef.current) {
|
|
20
|
-
//@ts-ignore
|
|
21
19
|
Commands.unfreezeCamera(viewRef.current);
|
|
22
20
|
}
|
|
23
21
|
}
|
|
@@ -104,7 +102,8 @@ export const ScanbotBarcodeCameraView = /*#__PURE__*/forwardRef(({
|
|
|
104
102
|
//Other
|
|
105
103
|
,
|
|
106
104
|
flashEnabled: props.flashEnabled,
|
|
107
|
-
scanningEnabled: props.scanningEnabled
|
|
105
|
+
scanningEnabled: props.scanningEnabled,
|
|
106
|
+
hardwareButtonsEnabled: props.hardwareButtonsEnabled
|
|
108
107
|
//View
|
|
109
108
|
,
|
|
110
109
|
style: styles.container,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","forwardRef","useCallback","useImperativeHandle","useRef","NativeBarcodeCameraView","Commands","Platform","StyleSheet","View","ScanbotBarcodeCameraView","onBarcodeScannerResult","props","forwardedRef","viewRef","boundBarcodeItemOverlayViews","Map","freezeCamera","current","unfreezeCamera","_onBarcodeScannerResult","event","result","nativeEvent","selectionOverlayAutoSelectDisabled","selectionOverlayConfig","overlayEnabled","automaticSelectionEnabled","barcodeScannerResult","OS","JSON","parse","barcodeItemOverlayViewBinder","barcode","barcodes","barcodeItemUuid","textWithExtension","type","barcodeItemNextBind","get","undefined","Date","now","set","bindingConfig","refreshRate","bindBarcodeItemOverlayView","stringify","_onBarcodeSelectionResult","barcodeItemResult","barcodeResult","createElement","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","detectorConfig","overlayPolygonColor","polygonColor","overlayStrokeColor","strokeColor","overlayTextFormat","textFormat","overlayTextColor","textColor","overlayTextContainerColor","textContainerColor","overlayLoadingTextValue","loadingTextValue","overlayBarcodeItemOverlayViewBinder","flashEnabled","scanningEnabled","ref","onSelectBarcodeResult","create","flex","position","width","height","zIndex"],"sourceRoot":"../../../../src","sources":["component/barcode-camera-view/ScanbotBarcodeCameraView.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,WAAW,EAAEC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AACnF,OAAOC,uBAAuB,IAC5BC,QAAQ,QACH,kDAAkD;AAKzD,SAA+BC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAI/E,OAAO,MAAMC,wBAAwB,gBAAGT,UAAU,CAGhD,CAAC;EAAEU,sBAAsB;EAAE,GAAGC;AAAM,CAAC,EAAEC,YAAY,KAAK;EACxD,MAAMC,OAAO,GAAGV,MAAM,CAAC,IAAI,CAAC;EAC5B,MAAMW,4BAA4B,GAAGX,MAAM,CAAsB,IAAIY,GAAG,CAAC,CAAC,CAAC;EAE3Eb,mBAAmB,CAACU,YAAY,EAAE,MAAM;IACtC,OAAO;MACLI,YAAYA,CAAA,EAAG;QACb,IAAIH,OAAO,CAACI,OAAO,EAAE;
|
|
1
|
+
{"version":3,"names":["React","forwardRef","useCallback","useImperativeHandle","useRef","NativeBarcodeCameraView","Commands","Platform","StyleSheet","View","ScanbotBarcodeCameraView","onBarcodeScannerResult","props","forwardedRef","viewRef","boundBarcodeItemOverlayViews","Map","freezeCamera","current","unfreezeCamera","_onBarcodeScannerResult","event","result","nativeEvent","selectionOverlayAutoSelectDisabled","selectionOverlayConfig","overlayEnabled","automaticSelectionEnabled","barcodeScannerResult","OS","JSON","parse","barcodeItemOverlayViewBinder","barcode","barcodes","barcodeItemUuid","textWithExtension","type","barcodeItemNextBind","get","undefined","Date","now","set","bindingConfig","refreshRate","bindBarcodeItemOverlayView","stringify","_onBarcodeSelectionResult","barcodeItemResult","barcodeResult","createElement","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","detectorConfig","overlayPolygonColor","polygonColor","overlayStrokeColor","strokeColor","overlayTextFormat","textFormat","overlayTextColor","textColor","overlayTextContainerColor","textContainerColor","overlayLoadingTextValue","loadingTextValue","overlayBarcodeItemOverlayViewBinder","flashEnabled","scanningEnabled","hardwareButtonsEnabled","ref","onSelectBarcodeResult","create","flex","position","width","height","zIndex"],"sourceRoot":"../../../../src","sources":["component/barcode-camera-view/ScanbotBarcodeCameraView.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,WAAW,EAAEC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;AACnF,OAAOC,uBAAuB,IAC5BC,QAAQ,QACH,kDAAkD;AAKzD,SAA+BC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAI/E,OAAO,MAAMC,wBAAwB,gBAAGT,UAAU,CAGhD,CAAC;EAAEU,sBAAsB;EAAE,GAAGC;AAAM,CAAC,EAAEC,YAAY,KAAK;EACxD,MAAMC,OAAO,GAAGV,MAAM,C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AAExF,KAAK,CAACwF;IAC9B;IAAA;IACAhD,KAAK,EAAEC,MAAM,CAACC,SAAU;IACxB+C,GAAG,EAAEvF;IACL;IAAA;IACAH,sBAAsB,EAAES,uBAAwB;IAChDkF,qBAAqB,EAAEtD;EAA0B,CAClD,CACG,CAAC;AAEX,CAAC,CAAC;AAEF,MAAMK,MAAM,GAAG7C,UAAU,CAAC+F,MAAM,CAAC;EAC/BjD,SAAS,EAAE;IACTkD,IAAI,EAAE;EACR,CAAC;EACDhD,qBAAqB,EAAE;IACrBiD,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":["codegenNativeComponent","codegenNativeCommands","Commands","supportedCommands"],"sourceRoot":"../../../../src","sources":["component/spec/ScanbotBarcodeScannerViewNativeComponent.ts"],"mappings":"AAAA,OAAOA,sBAAsB,MAAM,yDAAyD;AAS5F,OAAOC,qBAAqB,MAAM,wDAAwD;
|
|
1
|
+
{"version":3,"names":["codegenNativeComponent","codegenNativeCommands","Commands","supportedCommands"],"sourceRoot":"../../../../src","sources":["component/spec/ScanbotBarcodeScannerViewNativeComponent.ts"],"mappings":"AAAA,OAAOA,sBAAsB,MAAM,yDAAyD;AAS5F,OAAOC,qBAAqB,MAAM,wDAAwD;AAyD1F,eAAeD,sBAAsB,CAAc,2BAA2B,CAAC;AAY/E,OAAO,MAAME,QAAQ,GAAGD,qBAAqB,CAAiB;EAC5DE,iBAAiB,EAAE,CAAC,cAAc,EAAE,gBAAgB,EAAE,4BAA4B;AACpF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScanbotBarcodeCameraView.d.ts","sourceRoot":"","sources":["../../../../../src/component/barcode-camera-view/ScanbotBarcodeCameraView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+D,MAAM,OAAO,CAAC;AAIpF,OAAO,EACL,8BAA8B,EAC9B,kCAAkC,EACnC,MAAM,sCAAsC,CAAC;AAK9C,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"ScanbotBarcodeCameraView.d.ts","sourceRoot":"","sources":["../../../../../src/component/barcode-camera-view/ScanbotBarcodeCameraView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+D,MAAM,OAAO,CAAC;AAIpF,OAAO,EACL,8BAA8B,EAC9B,kCAAkC,EACnC,MAAM,sCAAsC,CAAC;AAK9C,eAAO,MAAM,wBAAwB,2HA4JnC,CAAC"}
|
package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.d.ts
CHANGED
|
@@ -20,6 +20,11 @@ export interface ScanbotBarcodeCameraViewProperties {
|
|
|
20
20
|
* Default is enabled.
|
|
21
21
|
*/
|
|
22
22
|
scanningEnabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Controls whether the hardware volume buttons and the new hardware camera control
|
|
25
|
+
* button should snap or not. Available in iOS 17.2 and later.
|
|
26
|
+
*/
|
|
27
|
+
hardwareButtonsEnabled?: boolean;
|
|
23
28
|
onBarcodeScannerResult: (result: BarcodeScannerResult) => void;
|
|
24
29
|
style?: StyleProp<ViewStyle>;
|
|
25
30
|
contentContainerStyle?: StyleProp<ViewStyle>;
|
package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScanbotBarcodeCameraViewProperties.d.ts","sourceRoot":"","sources":["../../../../../src/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,aAAa,EACb,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,YAAY,EACZ,UAAU,EACV,eAAe,EACf,2BAA2B,EAC3B,SAAS,EACV,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,8CAA8C,CAAC;AACzE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,kCAAkC;IACjD,qDAAqD;IACrD,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,oDAAoD;IACpD,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,gFAAgF;IAChF,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,2CAA2C;IAC3C,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;IAChD,0CAA0C;IAC1C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ScanbotBarcodeCameraViewProperties.d.ts","sourceRoot":"","sources":["../../../../../src/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,aAAa,EACb,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACvB,YAAY,EACZ,UAAU,EACV,eAAe,EACf,2BAA2B,EAC3B,SAAS,EACV,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,8CAA8C,CAAC;AACzE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,kCAAkC;IACjD,qDAAqD;IACrD,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,oDAAoD;IACpD,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,gFAAgF;IAChF,cAAc,CAAC,EAAE,cAAc,CA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C;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,8BAA8B;IAC7C,iCAAiC;IACjC,YAAY,IAAI,IAAI,CAAC;IAErB,qDAAqD;IACrD,cAAc,IAAI,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,4BAA4B;IAC3C,uIAAuI;IACvI,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qHAAqH;IACrH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0IAA0I;IAC1I,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2HAA2H;IAC3H,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wGAAwG;IACxG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -30,6 +30,7 @@ interface NativeProps extends ViewProps {
|
|
|
30
30
|
maxZoom?: WithDefault<Float, 12.0>;
|
|
31
31
|
};
|
|
32
32
|
cameraModule?: WithDefault<string, 'BACK'>;
|
|
33
|
+
hardwareButtonsEnabled?: WithDefault<boolean, true>;
|
|
33
34
|
scanningEnabled?: WithDefault<boolean, true>;
|
|
34
35
|
detectorConfig?: {
|
|
35
36
|
barcodeFormats?: ReadonlyArray<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScanbotBarcodeScannerViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../src/component/spec/ScanbotBarcodeScannerViewNativeComponent.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,KAAK,EACV,kBAAkB,EAClB,MAAM,EACN,KAAK,EACL,KAAK,EACL,WAAW,EACZ,MAAM,2CAA2C,CAAC;AAGnD,KAAK,KAAK,GAAG,QAAQ,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAAC;AAEH,UAAU,WAAY,SAAQ,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E,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACzD,mCAAmC,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;CACnE;;AAED,wBAAgF;AAEhF,UAAU,cAAc;IACtB,YAAY,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,KAAK,IAAI,CAAC;IAC9E,cAAc,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,KAAK,IAAI,CAAC;IAChF,0BAA0B,EAAE,CAC1B,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,EACrD,eAAe,EAAE,MAAM,EACvB,aAAa,EAAE,MAAM,KAClB,IAAI,CAAC;CACX;AAED,eAAO,MAAM,QAAQ,gBAEnB,CAAC"}
|
|
1
|
+
{"version":3,"file":"ScanbotBarcodeScannerViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../src/component/spec/ScanbotBarcodeScannerViewNativeComponent.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzE,OAAO,KAAK,EACV,kBAAkB,EAClB,MAAM,EACN,KAAK,EACL,KAAK,EACL,WAAW,EACZ,MAAM,2CAA2C,CAAC;AAGnD,KAAK,KAAK,GAAG,QAAQ,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC,CAAC;AAEH,UAAU,WAAY,SAAQ,SAAS;IACrC,sBAAsB,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACnD,qBAAqB,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACjD,YAAY,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC3C,aAAa,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE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,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,KAAK,IAAI,CAAC;IAC9E,cAAc,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,KAAK,IAAI,CAAC;IAChF,0BAA0B,EAAE,CAC1B,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,EACrD,eAAe,EAAE,MAAM,EACvB,aAAa,EAAE,MAAM,KAClB,IAAI,CAAC;CACX;AAED,eAAO,MAAM,QAAQ,gBAEnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-scanbot-barcode-scanner-sdk",
|
|
3
3
|
"title": "Scanbot Barcode Scanner SDK for React Native",
|
|
4
|
-
"version": "6.2.
|
|
4
|
+
"version": "6.2.2-beta.2",
|
|
5
5
|
"description": "Scanbot Barcode Scanner SDK React Native Plugin for Android and iOS",
|
|
6
6
|
"main": "lib/commonjs/index",
|
|
7
7
|
"module": "lib/module/index",
|
|
@@ -21,14 +21,12 @@ export const ScanbotBarcodeCameraView = forwardRef<
|
|
|
21
21
|
return {
|
|
22
22
|
freezeCamera() {
|
|
23
23
|
if (viewRef.current) {
|
|
24
|
-
//@ts-ignore
|
|
25
24
|
Commands.freezeCamera(viewRef.current);
|
|
26
25
|
}
|
|
27
26
|
},
|
|
28
27
|
|
|
29
28
|
unfreezeCamera() {
|
|
30
29
|
if (viewRef.current) {
|
|
31
|
-
//@ts-ignore
|
|
32
30
|
Commands.unfreezeCamera(viewRef.current);
|
|
33
31
|
}
|
|
34
32
|
},
|
|
@@ -158,6 +156,7 @@ export const ScanbotBarcodeCameraView = forwardRef<
|
|
|
158
156
|
//Other
|
|
159
157
|
flashEnabled={props.flashEnabled}
|
|
160
158
|
scanningEnabled={props.scanningEnabled}
|
|
159
|
+
hardwareButtonsEnabled={props.hardwareButtonsEnabled}
|
|
161
160
|
//View
|
|
162
161
|
style={styles.container}
|
|
163
162
|
ref={viewRef}
|
|
@@ -33,6 +33,11 @@ export interface ScanbotBarcodeCameraViewProperties {
|
|
|
33
33
|
* Default is enabled.
|
|
34
34
|
*/
|
|
35
35
|
scanningEnabled?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Controls whether the hardware volume buttons and the new hardware camera control
|
|
38
|
+
* button should snap or not. Available in iOS 17.2 and later.
|
|
39
|
+
*/
|
|
40
|
+
hardwareButtonsEnabled?: boolean;
|
|
36
41
|
/* The result of the barcode scanner */
|
|
37
42
|
onBarcodeScannerResult: (result: BarcodeScannerResult) => void;
|
|
38
43
|
style?: StyleProp<ViewStyle>;
|
|
@@ -38,6 +38,7 @@ interface NativeProps extends ViewProps {
|
|
|
38
38
|
maxZoom?: WithDefault<Float, 12.0>;
|
|
39
39
|
};
|
|
40
40
|
cameraModule?: WithDefault<string, 'BACK'>;
|
|
41
|
+
hardwareButtonsEnabled?: WithDefault<boolean, true>;
|
|
41
42
|
scanningEnabled?: WithDefault<boolean, true>;
|
|
42
43
|
detectorConfig?: {
|
|
43
44
|
barcodeFormats?: ReadonlyArray<string>;
|