We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c132b6 commit 19551aaCopy full SHA for 19551aa
android/src/main/java/com/sourcetoad/idscanreactnative/IdscanSdkModule.kt
@@ -120,9 +120,10 @@ class IdscanSdkModule(reactContext: ReactApplicationContext) :
120
fun scan(type: String?, apiKeys: ReadableMap, callback: Callback) {
121
Log.d(NAME, "React Native IDScanner starting")
122
123
- if (apiKeys.isNull(KEY_MRZ_KEY) || apiKeys.isNull(KEY_PDF_KEY) || apiKeys.isNull(KEY_PARSER_KEY)) {
+ if ((apiKeys.isNull(KEY_MRZ_KEY) && apiKeys.isNull(KEY_PDF_KEY)) || apiKeys.isNull(KEY_PARSER_KEY)) {
124
val scanResult = Arguments.createMap()
125
scanResult.putString("success", "false")
126
+
127
callback.invoke("Must provide activation keys for IDScan.net's Camera Scanner and ID Parser SDKs")
128
return
129
}
0 commit comments