react-native-rectangle-doc-scanner 8.0.0 → 10.0.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.
@@ -88,10 +88,13 @@ class CameraController(
88
88
  }
89
89
 
90
90
  // Preview UseCase
91
+ Log.d(TAG, "[CAMERAX] PreviewView size: ${previewView.width}x${previewView.height}")
92
+ Log.d(TAG, "[CAMERAX] PreviewView visibility: ${previewView.visibility}")
91
93
  preview = Preview.Builder()
92
94
  .build()
93
95
  .also {
94
96
  it.setSurfaceProvider(previewView.surfaceProvider)
97
+ Log.d(TAG, "[CAMERAX] SurfaceProvider set successfully")
95
98
  }
96
99
 
97
100
  // ImageAnalysis UseCase for document detection
@@ -87,7 +87,7 @@ class DocumentScannerView(context: ThemedReactContext) : FrameLayout(context), L
87
87
  layoutParams = LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)
88
88
  visibility = View.VISIBLE
89
89
  keepScreenOn = true
90
- implementationMode = PreviewView.ImplementationMode.COMPATIBLE // Use TextureView internally
90
+ implementationMode = PreviewView.ImplementationMode.PERFORMANCE // Use SurfaceView internally
91
91
  scaleType = PreviewView.ScaleType.FILL_CENTER // Fill and center the preview
92
92
  }
93
93
  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": "8.0.0",
3
+ "version": "10.0.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",