react-native-scanbot-barcode-scanner-sdk 4.2.0-beta.4 → 4.2.0
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.
|
@@ -167,7 +167,7 @@ public class ScanbotBarcodeCameraView extends FrameLayout implements BarcodeDete
|
|
|
167
167
|
}
|
|
168
168
|
finderOverlayView.setStrokeColor(configuration.getFinderLineColorAsInt());
|
|
169
169
|
|
|
170
|
-
if (configuration.getFinderInset() != null) {
|
|
170
|
+
if (configuration.getFinderInset() != null && !configuration.getFinderInset().isEmpty()) {
|
|
171
171
|
finderOverlayView.setFinderInset(
|
|
172
172
|
ScanbotViewUtils.convertDpToPx(getResources(), configuration.getFinderInset().left),
|
|
173
173
|
ScanbotViewUtils.convertDpToPx(getResources(), configuration.getFinderInset().top),
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-scanbot-barcode-scanner-sdk",
|
|
3
3
|
"title": "Scanbot Barcode Scanner SDK for React Native",
|
|
4
|
-
"version": "4.2.0
|
|
4
|
+
"version": "4.2.0",
|
|
5
5
|
"scanbot": {
|
|
6
|
-
"iosWrapperVersion": "4.2.2.0
|
|
6
|
+
"iosWrapperVersion": "4.2.2.0"
|
|
7
7
|
},
|
|
8
8
|
"description": "Scanbot Barcode Scanner SDK React Native Plugin for Android and iOS",
|
|
9
9
|
"main": "index.js",
|
|
@@ -194,7 +194,7 @@ export class ScanbotBarcodeCameraView extends React.Component<Properties, {}> {
|
|
|
194
194
|
outObj.cameraZoomFactor = obj.cameraZoomFactor ?? -1;
|
|
195
195
|
outObj.finderAspectRatio = obj.finderAspectRatio ?? { width: -1, height: -1 };
|
|
196
196
|
outObj.finderBackgroundOpacity = obj.finderBackgroundOpacity ?? -1;
|
|
197
|
-
outObj.finderInset = obj.finderInset
|
|
197
|
+
outObj.finderInset = obj.finderInset ?? { left: -1, top: -1, bottom: -1, right: -1 };
|
|
198
198
|
outObj.finderLineWidth = obj.finderLineWidth ?? -1;
|
|
199
199
|
outObj.maximumTextLength = obj.maximumTextLength ?? -1;
|
|
200
200
|
outObj.minimumTextLength = obj.minimumTextLength ?? -1;
|