react-native-rectangle-doc-scanner 3.171.0 → 3.173.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.
@@ -77,13 +77,10 @@ class DocumentScannerView(context: ThemedReactContext) : FrameLayout(context), L
77
77
  previewView = PreviewView(context).apply {
78
78
  layoutParams = LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)
79
79
  scaleType = PreviewView.ScaleType.FILL_CENTER
80
- // Use PERFORMANCE mode (SurfaceView) for better performance
80
+ // SurfaceView backed preview avoids black frames on some MediaTek devices
81
81
  implementationMode = PreviewView.ImplementationMode.PERFORMANCE
82
- // Force visibility to ensure the view is rendered
83
82
  visibility = View.VISIBLE
84
- // Keep the screen on while preview is active
85
83
  keepScreenOn = true
86
- // Request layout to ensure proper sizing
87
84
  requestLayout()
88
85
  }
89
86
  Log.d(TAG, "[INIT] PreviewView created: $previewView")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "3.171.0",
3
+ "version": "3.173.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",