react-native-rectangle-doc-scanner 3.160.0 → 3.162.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,6 +77,8 @@ 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
82
|
}
|
|
81
83
|
Log.d(TAG, "[INIT] PreviewView created: $previewView")
|
|
82
84
|
|
package/package.json
CHANGED
|
@@ -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;
|