react-native-rectangle-doc-scanner 3.83.0 → 3.85.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
|
@@ -12,8 +12,9 @@ Pod::Spec.new do |s|
|
|
|
12
12
|
s.platforms = { :ios => "11.0" }
|
|
13
13
|
s.source = { :git => package['repository']['url'], :tag => "v#{s.version}" }
|
|
14
14
|
|
|
15
|
-
# Include vendor native iOS code
|
|
15
|
+
# Include vendor native iOS code, exclude _simple.m file
|
|
16
16
|
s.source_files = "vendor/react-native-document-scanner/ios/**/*.{h,m,mm,swift}"
|
|
17
|
+
s.exclude_files = "vendor/react-native-document-scanner/ios/**/*_simple.m"
|
|
17
18
|
|
|
18
19
|
s.dependency "React-Core"
|
|
19
20
|
|
|
@@ -41,13 +41,13 @@ RCT_EXPORT_METHOD(capture:(NSNumber * _Nullable)reactTag
|
|
|
41
41
|
NSLog(@"[RNPdfScannerManager] capture called with reactTag: %@", reactTag);
|
|
42
42
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
43
43
|
DocumentScannerView *targetView = nil;
|
|
44
|
+
NSNumber *resolvedTag = reactTag;
|
|
44
45
|
|
|
45
|
-
if ([
|
|
46
|
-
|
|
46
|
+
if ([resolvedTag isKindOfClass:[NSNull class]]) {
|
|
47
|
+
resolvedTag = nil;
|
|
47
48
|
}
|
|
48
49
|
|
|
49
|
-
if (
|
|
50
|
-
NSNumber *resolvedTag = (NSNumber *)reactTag;
|
|
50
|
+
if (resolvedTag) {
|
|
51
51
|
UIView *view = [self.bridge.uiManager viewForReactTag:resolvedTag];
|
|
52
52
|
if ([view isKindOfClass:[DocumentScannerView class]]) {
|
|
53
53
|
targetView = (DocumentScannerView *)view;
|