react-native-rectangle-doc-scanner 3.159.0 → 3.160.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.
package/package.json
CHANGED
|
@@ -208,13 +208,16 @@ class PdfScanner extends React.Component {
|
|
|
208
208
|
}
|
|
209
209
|
console.log('[PdfScanner] Rendering RNPdfScanner native component');
|
|
210
210
|
const { onLayout, ...restProps } = this.props;
|
|
211
|
-
|
|
211
|
+
const component = (
|
|
212
212
|
<RNPdfScanner
|
|
213
213
|
ref={(ref) => {
|
|
214
|
+
console.log('[PdfScanner] ref callback called with:', ref);
|
|
214
215
|
this.nativeRef = ref;
|
|
215
216
|
this.nativeTag = ref ? findNodeHandle(ref) : null;
|
|
217
|
+
console.log('[PdfScanner] nativeTag set to:', this.nativeTag);
|
|
216
218
|
}}
|
|
217
219
|
onLayout={(event) => {
|
|
220
|
+
console.log('[PdfScanner] onLayout called with event:', event.nativeEvent);
|
|
218
221
|
this.nativeTag = event?.nativeEvent?.target ?? this.nativeTag;
|
|
219
222
|
if (onLayout) {
|
|
220
223
|
onLayout(event);
|
|
@@ -232,6 +235,8 @@ class PdfScanner extends React.Component {
|
|
|
232
235
|
detectionRefreshRateInMS={this.props.detectionRefreshRateInMS || 50}
|
|
233
236
|
/>
|
|
234
237
|
);
|
|
238
|
+
console.log('[PdfScanner] Returning component:', component);
|
|
239
|
+
return component;
|
|
235
240
|
}
|
|
236
241
|
}
|
|
237
242
|
|