react-native-rectangle-doc-scanner 3.161.0 → 3.163.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,10 +77,11 @@ 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 TextureView instead of SurfaceView for better compatibility with React Native
81
- implementationMode = PreviewView.ImplementationMode.PERFORMANCE
80
+ // Force TextureView for React Native compatibility (SurfaceView has rendering issues)
81
+ implementationMode = PreviewView.ImplementationMode.COMPATIBLE
82
82
  }
83
83
  Log.d(TAG, "[INIT] PreviewView created: $previewView")
84
+ Log.d(TAG, "[INIT] PreviewView implementationMode: ${previewView.implementationMode}")
84
85
 
85
86
  Log.d(TAG, "[INIT] Adding PreviewView to parent...")
86
87
  addView(previewView)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "3.161.0",
3
+ "version": "3.163.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -210,6 +210,7 @@ class PdfScanner extends React.Component {
210
210
  const { onLayout, ...restProps } = this.props;
211
211
  const component = (
212
212
  <RNPdfScanner
213
+ collapsable={false}
213
214
  ref={(ref) => {
214
215
  console.log('[PdfScanner] ref callback called with:', ref);
215
216
  this.nativeRef = ref;