react-native-rectangle-doc-scanner 7.57.0 → 7.58.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.
@@ -483,10 +483,10 @@ class DocumentScannerView(context: ThemedReactContext) : FrameLayout(context), L
483
483
  })
484
484
  previewViewport?.let {
485
485
  putMap("previewViewport", Arguments.createMap().apply {
486
- putDouble("left", it.left / density)
487
- putDouble("top", it.top / density)
488
- putDouble("width", it.width() / density)
489
- putDouble("height", it.height() / density)
486
+ putDouble("left", (it.left / density).toDouble())
487
+ putDouble("top", (it.top / density).toDouble())
488
+ putDouble("width", (it.width() / density).toDouble())
489
+ putDouble("height", (it.height() / density).toDouble())
490
490
  })
491
491
  }
492
492
  putMap("previewSize", Arguments.createMap().apply {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "7.57.0",
3
+ "version": "7.58.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",