Skip to content

Commit 9a907ac

Browse files
Fix the sdk orientation on iOS which wasn't taken into account when set.
1 parent df65eb0 commit 9a907ac

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ReactIdcheckioClient/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"start": "react-native start"
99
},
1010
"dependencies": {
11+
"@react-native-community/picker": "^1.8.1",
1112
"react": "17.0.2",
1213
"react-idcheckio": "file:.yalc/react-idcheckio",
1314
"react-native": "0.68.2",

react-idcheckio/ios/Idcheckio.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ - (SDKParams*) getParamsFromDictionnary:(NSDictionary*)params {
157157
for(NSString* key in [params allKeys]){
158158
if([key isEqualToString:docTypeKey]){
159159
[sdkParams setDocumentType:[params objectForKey:key]];
160+
} else if ([key isEqualToString:orientationKey]) {
161+
[sdkParams setOrientation:[params objectForKey:key]];
160162
} else if ([key isEqualToString:confirmationTypeKey]) {
161163
[sdkParams setConfirmType:[params objectForKey:key]];
162164
} else if ([key isEqualToString:sideOneExtractionKey]) {

0 commit comments

Comments
 (0)