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
|
-
//
|
|
81
|
-
//
|
|
82
|
-
|
|
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