react-native-rectangle-doc-scanner 3.13.0 → 3.14.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.13.0",
3
+ "version": "3.14.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -35,6 +35,8 @@ try {
35
35
  const filesToCopy = [
36
36
  'ios/IPDFCameraViewController.m',
37
37
  'ios/DocumentScannerView.m',
38
+ 'ios/RNPdfScannerManager.m',
39
+ 'ios/RNPdfScannerManager.h',
38
40
  'ios.js'
39
41
  ];
40
42
 
@@ -39,6 +39,9 @@ RCT_EXPORT_METHOD(capture) {
39
39
 
40
40
  - (UIView*) view {
41
41
  _scannerView = [[DocumentScannerView alloc] init];
42
+ // Force layout update
43
+ _scannerView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
44
+ NSLog(@"[RNPdfScannerManager] Created view with frame: %@", NSStringFromCGRect(_scannerView.frame));
42
45
  return _scannerView;
43
46
  }
44
47