react-native-rectangle-doc-scanner 3.168.0 → 3.169.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,11 +77,9 @@ 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
- // Some MediaTek based devices render a black TextureView preview when
81
- // using the COMPATIBLE implementation. Forcing the SurfaceView backed
82
- // PERFORMANCE mode keeps the preview visible while still allowing us
83
- // to draw our overlay on top.
84
- implementationMode = PreviewView.ImplementationMode.PERFORMANCE
80
+ // Use COMPATIBLE (TextureView) mode instead of PERFORMANCE (SurfaceView)
81
+ // Some devices have issues with SurfaceView not creating the surface in time
82
+ implementationMode = PreviewView.ImplementationMode.COMPATIBLE
85
83
  // Force visibility to ensure the view is rendered
86
84
  visibility = View.VISIBLE
87
85
  // Request layout to ensure proper sizing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "3.168.0",
3
+ "version": "3.169.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",