react-native-scanbot-barcode-scanner-sdk 9.0.0-rc.3 → 9.0.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.
@@ -86,6 +86,7 @@ class ScanbotBarcodeScannerView(
86
86
  var frameProcessingState: Boolean = INITIAL_FRAME_PROCESSING_STATE
87
87
  var polygonStyle = PolygonStyleConfig()
88
88
  var textStyle = TextStyleConfig()
89
+ var finderAspectRatio = FinderViewConfiguration.DEFAULT_ASPECT_RATIO
89
90
 
90
91
  private var cameraPermissionRequested = false
91
92
  private var lifecycleOwner: LifecycleOwner? = null
@@ -180,6 +180,7 @@ class ScanbotBarcodeScannerViewManager : SimpleViewManager<ScanbotBarcodeScanner
180
180
  }
181
181
 
182
182
  view.scannerView?.finderViewController?.setRequiredAspectRatios(aspectRatios)
183
+ view.finderAspectRatio = aspectRatios
183
184
  }
184
185
 
185
186
  @ReactProp(name = "finderInset")
@@ -203,6 +204,7 @@ class ScanbotBarcodeScannerViewManager : SimpleViewManager<ScanbotBarcodeScanner
203
204
  @ReactProp(name = "finderEnabled")
204
205
  override fun setFinderEnabled(view: ScanbotBarcodeScannerView, value: Boolean) {
205
206
  view.scannerView?.finderViewController?.setFinderEnabled(value)
207
+ view.scannerView?.finderViewController?.setRequiredAspectRatios(view.finderAspectRatio)
206
208
  }
207
209
 
208
210
  @ReactProp(name = "finderStrokeWidth")
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": "9.0.0-rc.3",
4
+ "version": "9.0.0",
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",