@@ -21,7 +21,7 @@ The iProov Biometrics React Native SDK wraps iProov's native iOS (Swift) and And
2121### Requirements
2222
2323- React Native 0.73 and above
24- - iOS 13 .0 and above
24+ - iOS 15 .0 and above
2525- Android API Level 26 (Android 8 Oreo) and above
2626
2727## Registration
@@ -34,7 +34,7 @@ You can obtain API credentials by registering on the [iProov Partner Portal](htt
3434
3535 ```json
3636 "dependencies": {
37- "@iproov/react-native": "2.1 .0"
37+ "@iproov/react-native": "3.0 .0"
3838 }
3939 ```
4040
@@ -125,10 +125,19 @@ IProov.launch('wss://eu.rp.secure.iproov.me/ws', "< YOUR TOKEN >", options, even
125125
126126 case IProov .EVENT_FAILURE :
127127 // The user was not successfully verified/enrolled, as their identity could not be verified,
128- // or there was another issue with their verification/enrollment. A reason (as a string)
129- // is provided as to why the claim failed, along with a feedback code from the back-end.
130-
131- let reason = event .params .reason
128+ // or there was another issue with their verification/enrollment. Reasons are provided
129+ // as to why the claim failed, each one having a feedback code and description from the back-end.
130+
131+ let failureReasons = event .params .reasons
132+
133+ let feedbackCodes = failureReasons .map (reason => {
134+ return reason .feedbackCode ;
135+ });
136+
137+ let descriptions = failureReasons .map (reason => {
138+ return reason .description ;
139+ });
140+
132141 let frame = event .params .frame // Optional property containing a single Base64 encoded frame
133142 break
134143
@@ -185,7 +194,6 @@ A summary of the support for the various SDK options in React Native is provided
185194| ` timeout ` | ` Number ` (int) | ✅ | ✅ |
186195| ` enableScreenshots ` | ` Boolean ` | | ✅ |
187196| ` orientation ` | ` Options.(PORTRAIT\|LANDSCAPE\|REVERSE_PORTRAIT\|REVERSE_LANDSCAPE) ` | | ✅ |
188- | ` camera ` | ` Options.(FRONT\|EXTERNAL) ` | | ✅ |
189197| ` headerBackgroundColor ` | ` String ` (#rgba) | ✅ | ✅ |
190198| ` disableExteriorEffects ` | ` Boolean ` | ✅ | ✅ |
191199| ** ` Options.genuinePresenceAssurance. ` ** | | | |
0 commit comments