react-native-rectangle-doc-scanner 3.158.0 → 3.159.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "3.158.0",
3
+ "version": "3.159.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -10,8 +10,17 @@ import {
10
10
  } from 'react-native';
11
11
  import PropTypes from 'prop-types';
12
12
 
13
- const RNPdfScanner = requireNativeComponent('RNPdfScanner', PdfScanner);
13
+ console.log('[PdfScanner] Attempting to require native component RNPdfScanner...');
14
+ let RNPdfScanner;
15
+ try {
16
+ RNPdfScanner = requireNativeComponent('RNPdfScanner', PdfScanner);
17
+ console.log('[PdfScanner] Native component RNPdfScanner loaded successfully:', RNPdfScanner);
18
+ } catch (error) {
19
+ console.error('[PdfScanner] Failed to load native component RNPdfScanner:', error);
20
+ throw error;
21
+ }
14
22
  const CameraManager = NativeModules.RNPdfScannerManager || {};
23
+ console.log('[PdfScanner] CameraManager:', CameraManager);
15
24
 
16
25
  class PdfScanner extends React.Component {
17
26
  constructor(props) {