Skip to content

Commit

Permalink
Merge branch 'release/22' of github.com:Anyline/anyline-ocr-react-nat…
Browse files Browse the repository at this point in the history
…ive-module into release/22
  • Loading branch information
Gerhard committed Jul 3, 2020
2 parents 2dbed9f + af7b35e commit 58c84e2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion example/RNExampleApp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ class Anyline extends Component {
BackHandler.exitApp();
}
});
console.log("TITLES:::" + titles);
return (
<ScrollView
style={styles.container}
Expand Down
8 changes: 8 additions & 0 deletions plugin/ios/ALPluginHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,14 @@ + (NSDictionary *)dictionaryForIDResult:(ALIDResult *)scanResult
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"yyyy.MM.dd"];

if ([scanResult.result isKindOfClass:[ALTemplateIdentification class]]) {
ALTemplateIdentification *identification = (ALTemplateIdentification *)scanResult.result;

[[identification fieldNames] enumerateObjectsUsingBlock:^(NSString *fieldName, NSUInteger idx, BOOL *stop) {
[dictResult setValue:[identification valueForField:fieldName] forKey:fieldName];
}];
}

if ([scanResult.result isKindOfClass:[ALMRZIdentification class]]) {
ALMRZIdentification *mrzIdentification = (ALMRZIdentification *)scanResult.result;
NSMutableArray<NSString *> *keys=[@[
Expand Down

0 comments on commit 58c84e2

Please sign in to comment.