react-native-rectangle-doc-scanner 3.172.0 → 3.174.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,12 +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
- // SurfaceView backed preview avoids black frames on some MediaTek devices
81
- implementationMode = PreviewView.ImplementationMode.PERFORMANCE
80
+ // TextureView (COMPATIBLE) avoids Surface ordering issues observed on some MediaTek devices
81
+ implementationMode = PreviewView.ImplementationMode.COMPATIBLE
82
82
  visibility = View.VISIBLE
83
83
  keepScreenOn = true
84
- // Ensure the preview stays behind overlays even if SurfaceFlinger reorders surfaces
85
- setZOrderOnTop(false)
86
84
  requestLayout()
87
85
  }
88
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.172.0",
3
+ "version": "3.174.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",