react-native-rectangle-doc-scanner 3.184.0 → 3.185.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,14 +77,14 @@ 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
|
|
81
|
-
implementationMode = PreviewView.ImplementationMode.
|
|
80
|
+
// Use PERFORMANCE (SurfaceView) - more reliable for camera preview
|
|
81
|
+
implementationMode = PreviewView.ImplementationMode.PERFORMANCE
|
|
82
82
|
visibility = View.VISIBLE
|
|
83
83
|
keepScreenOn = true
|
|
84
84
|
// Force view to be drawn
|
|
85
85
|
setWillNotDraw(false)
|
|
86
|
-
//
|
|
87
|
-
|
|
86
|
+
// Ensure the view is on top
|
|
87
|
+
bringToFront()
|
|
88
88
|
requestLayout()
|
|
89
89
|
}
|
|
90
90
|
Log.d(TAG, "[INIT] PreviewView created: $previewView")
|
|
@@ -99,8 +99,8 @@ class DocumentScannerView(context: ThemedReactContext) : FrameLayout(context), L
|
|
|
99
99
|
Log.d(TAG, "[INIT] Creating OverlayView...")
|
|
100
100
|
overlayView = OverlayView(context).apply {
|
|
101
101
|
layoutParams = LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)
|
|
102
|
-
//
|
|
103
|
-
|
|
102
|
+
// Ensure overlay is drawn on top
|
|
103
|
+
bringToFront()
|
|
104
104
|
}
|
|
105
105
|
Log.d(TAG, "[INIT] OverlayView created: $overlayView")
|
|
106
106
|
|
package/package.json
CHANGED