@microblink/blinkid-react-native 7.6.2 → 8000.0.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/BlinkidReactNative.podspec +2 -1
- package/README.md +490 -282
- package/android/build.gradle +56 -4
- package/android/gradle.properties +3 -4
- package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkIdDeserializationUtilities.kt +312 -251
- package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkIdSerializationUtilities.kt +859 -710
- package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkidReactNativeModule.kt +42 -34
- package/ios/BlinkidReactNative.mm +42 -52
- package/ios/BlinkidReactNativeModule.swift +92 -57
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/BlinkID +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/BlinkID-Swift.h +23857 -17935
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/BlinkID.h +2 -1
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Info.plist +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.abi.json +24452 -8480
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.private.swiftinterface +536 -234
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.swiftinterface +536 -234
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/PrivateHeaders/SwiftCxxBridge.hpp +2 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/_CodeSignature/CodeResources +19 -30
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/conan.xcconfig +3 -3
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/BlinkID +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/BlinkID-Swift.h +51708 -39864
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/BlinkID.h +2 -1
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Info.plist +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.abi.json +24452 -8480
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +536 -234
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.swiftinterface +536 -234
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.abi.json +24452 -8480
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +536 -234
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +536 -234
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/PrivateHeaders/SwiftCxxBridge.hpp +2 -0
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/_CodeSignature/CodeResources +29 -40
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/conan.xcconfig +3 -3
- package/ios/Frameworks/BlinkIDUX.xcframework/Info.plist +5 -5
- package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeResources +276 -859
- package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeSignature +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Assets.car +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Info.plist +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ak.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/am.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ar.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/bn.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/cs.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/da.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/de.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/el.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en-GB.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es-MX.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fa.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fi.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fil.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr-CA.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ha.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/he.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hi.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hr.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hu.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/id.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/is.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/it.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ja.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ka-GE.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/kk.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/km-KH.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ko.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/lv.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ms.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nb.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ne.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nl.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pl.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ps-AF.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt-BR.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ro.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ru.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/si.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sk.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sl.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sr.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sv.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sw.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/th.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/tr.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uk.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ur.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uz.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/vi.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/yo.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hans.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hant.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Info.plist +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.abi.json +8983 -4775
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.package.swiftinterface +234 -100
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.private.swiftinterface +234 -100
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.swiftinterface +234 -100
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Assets.car +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Info.plist +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeDirectory +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeResources +114 -346
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ak.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/am.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ar.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/bn.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/cs.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/da.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/de.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/el.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en-GB.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es-MX.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fa.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fi.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fil.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr-CA.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ha.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/he.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hi.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hr.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hu.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/id.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/is.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/it.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ja.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ka-GE.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/kk.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/km-KH.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ko.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/lv.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ms.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nb.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ne.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nl.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pl.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ps-AF.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt-BR.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ro.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ru.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/si.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sk.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sl.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sr.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sv.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sw.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/th.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/tr.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uk.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ur.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uz.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/vi.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/yo.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hans.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hant.lproj/Localizable.strings +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Info.plist +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.abi.json +8983 -4775
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +234 -100
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +234 -100
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.swiftinterface +234 -100
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.abi.json +8983 -4775
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +234 -100
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +234 -100
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +234 -100
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/_CodeSignature/CodeResources +1 -1
- package/ios/Serialization/BlinkIdDeserializationUtils.swift +492 -0
- package/ios/Serialization/BlinkIdSerializationUtils.swift +866 -0
- package/lib/module/NativeBlinkidReactNative.js.map +1 -1
- package/lib/module/blinkIdResult.js +1 -764
- package/lib/module/blinkIdResult.js.map +1 -1
- package/lib/module/blinkIdSettings.js +1 -496
- package/lib/module/blinkIdSettings.js.map +1 -1
- package/lib/module/index.js +81 -17
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.js +697 -3334
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/NativeBlinkidReactNative.d.ts +26 -5
- package/lib/typescript/src/NativeBlinkidReactNative.d.ts.map +1 -1
- package/lib/typescript/src/blinkIdResult.d.ts +35 -17
- package/lib/typescript/src/blinkIdResult.d.ts.map +1 -1
- package/lib/typescript/src/blinkIdSettings.d.ts +36 -297
- package/lib/typescript/src/blinkIdSettings.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +38 -10
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +992 -1149
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/package.json +5 -4
- package/src/NativeBlinkidReactNative.ts +28 -5
- package/src/blinkIdResult.ts +44 -432
- package/src/blinkIdSettings.ts +53 -373
- package/src/index.tsx +208 -35
- package/src/types.ts +1180 -1398
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/ios/BlinkIdDeserializationUtilities.swift +0 -374
- package/ios/BlinkIdSerializationUtilities.swift +0 -839
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/MBSampleBufferWrapper.h +0 -28
- package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/MBSampleBufferWrapper.h +0 -28
- package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeRequirements-1 +0 -0
- package/lib/module/blinkIdUtilities.js +0 -21
- package/lib/module/blinkIdUtilities.js.map +0 -1
- package/lib/typescript/src/blinkIdUtilities.d.ts +0 -8
- package/lib/typescript/src/blinkIdUtilities.d.ts.map +0 -1
- package/src/blinkIdUtilities.ts +0 -20
package/README.md
CHANGED
|
@@ -1,39 +1,58 @@
|
|
|
1
1
|
<p align="center" >
|
|
2
|
-
<img src="https://raw.githubusercontent.com/wiki/
|
|
2
|
+
<img src="https://raw.githubusercontent.com/wiki/microblink/blinkid-android/images/logo-microblink.png" alt="Microblink" title="Microblink">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
# _BlinkID_ React Native plugin
|
|
6
6
|
|
|
7
|
-
The BlinkID SDK is a comprehensive solution for implementing secure document scanning
|
|
8
|
-
It offers powerful capabilities for capturing and analyzing a wide range of identification documents. The
|
|
7
|
+
The BlinkID SDK is a comprehensive solution for implementing secure document scanning in React Native cross-platform applications.
|
|
8
|
+
It offers powerful capabilities for capturing and analyzing a wide range of identification documents. The React Native plugin wraps the native BlinkID SDK and BlinkID UX modules, providing a complete, ready-to-use scanning experience with a user-friendly interface.
|
|
9
9
|
|
|
10
|
-
**Please note that, for maximum performance and full access to all features, it’s best to go with one of our native SDKs (for [iOS](https://github.com/
|
|
10
|
+
**Please note that, for maximum performance and full access to all features, it’s best to go with one of our native SDKs (for [iOS](https://github.com/microblink/blinkid-ios) or [Android](https://github.com/microblink/blinkid-android)).**
|
|
11
11
|
|
|
12
12
|
However, since the wrapper is open source, you can add the features you need on your own.
|
|
13
13
|
|
|
14
|
+
> **Current version:** `@microblink/blinkid-react-native@8000.0.0` (BlinkID SDK v8000).
|
|
15
|
+
> If you are upgrading from v7.x, see [Migrating from v7.x](#migrating-from-v7x).
|
|
14
16
|
|
|
15
17
|
# Table of contents
|
|
16
18
|
- [Licensing](#licensing)
|
|
17
19
|
- [Requirements](#requirements)
|
|
18
20
|
- [Quickstart with the sample application](#quickstart-with-the-sample-application)
|
|
21
|
+
- [Android sample application](#android-sample-application)
|
|
22
|
+
- [On an emulator](#on-an-emulator)
|
|
23
|
+
- [On a physical device via USB](#on-a-physical-device-via-usb)
|
|
24
|
+
- [iOS sample application](#ios-sample-application)
|
|
19
25
|
- [Plugin integration](#plugin-integration)
|
|
26
|
+
- [Android setup](#android-setup)
|
|
27
|
+
- [iOS setup](#ios-setup)
|
|
28
|
+
- [Permissions](#permissions)
|
|
20
29
|
- [Plugin usage](#plugin-usage)
|
|
30
|
+
- [Imports and license key](#imports-and-license-key)
|
|
31
|
+
- [Configure scanning modules](#configure-scanning-modules)
|
|
32
|
+
- [Default BlinkID UX (camera scanning)](#default-blinkid-ux-camera-scanning)
|
|
33
|
+
- [BlinkID DirectAPI (static images)](#blinkid-directapi-static-images)
|
|
34
|
+
- [Document redaction](#document-redaction)
|
|
21
35
|
- [Plugin specifics](#plugin-specifics)
|
|
22
36
|
- [Scanning methods](#scanning-methods)
|
|
23
37
|
- [SDK loading & unloading](#sdk-loading--unloading)
|
|
24
|
-
- [BlinkID
|
|
25
|
-
- [BlinkID
|
|
38
|
+
- [BlinkID settings](#blinkid-settings)
|
|
39
|
+
- [BlinkID results](#blinkid-results)
|
|
40
|
+
- [What's new in v8000](#whats-new-in-v8000)
|
|
41
|
+
- [Migrating from v7.x](#migrating-from-v7x)
|
|
26
42
|
- [Additional information and Support](#additional-information-and-support)
|
|
27
43
|
|
|
28
44
|
## <a name="licensing"></a> Licensing
|
|
29
|
-
A valid license key is required to initialize the BlinkID plugin.
|
|
45
|
+
A valid license key is required to initialize the BlinkID plugin.
|
|
46
|
+
|
|
47
|
+
A free trial license key can be requested after registering at the [Microblink Developer Hub](https://developer.microblink.com/).
|
|
30
48
|
|
|
31
49
|
|
|
32
50
|
## <a name="requirements"></a> Requirements
|
|
33
51
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
52
|
+
BlinkID React Native v8000 was built and tested with [React Native v0.82.x](https://github.com/facebook/react-native/releases/tag/v0.82.1)
|
|
53
|
+
- The BlinkID React Native SDK is also compatible with React Native applications running on the old architecture as it contains backward compatibility with Native Module implementation.
|
|
54
|
+
|
|
55
|
+
For additional help with React-Native setup, view the official documentation [here](https://reactnative.dev/docs/set-up-your-environment).
|
|
37
56
|
|
|
38
57
|
**Device requirements**
|
|
39
58
|
|
|
@@ -41,20 +60,22 @@ The BlinkID React Native plugin requires:
|
|
|
41
60
|
- iOS version 16.0 and above
|
|
42
61
|
- Android API version 24 and above
|
|
43
62
|
|
|
44
|
-
|
|
63
|
+
For more detailed information about the BlinkID Android and iOS requirements, view the native SDK documentation here ([Android](https://github.com/microblink/blinkid-android?tab=readme-ov-file#-device-requirements) & [iOS](https://github.com/microblink/blinkid-ios?tab=readme-ov-file#requirements)).
|
|
45
64
|
|
|
46
65
|
## <a name="quickstart-with-the-sample-application"></a> Quickstart with the sample application
|
|
47
|
-
The sample application demonstrates how the BlinkID plugin is implemented
|
|
66
|
+
The sample application demonstrates how the BlinkID plugin is implemented and shows how to configure scanning modules and obtain results.
|
|
48
67
|
|
|
49
68
|
It contains the implementation for:
|
|
50
|
-
1.
|
|
51
|
-
2. **Multiside DirectAPI scanning**
|
|
52
|
-
3. **Singleside DirectAPI scanning**
|
|
69
|
+
1. **Default BlinkID UX scanning** — camera-based scanning with configurable modules.
|
|
70
|
+
2. **Multiside DirectAPI scanning** — extracting document information from two static images (from the gallery).
|
|
71
|
+
3. **Singleside DirectAPI scanning** — extracting document information from a single static image (from the gallery).
|
|
53
72
|
|
|
54
|
-
|
|
55
|
-
|
|
73
|
+
The sample also includes a **module settings panel** where you can toggle and configure the document capture, barcode, MRZ, and VIZ modules, along with optional class filters and redaction settings.
|
|
74
|
+
|
|
75
|
+
To obtain and run the sample application, follow the steps below.
|
|
76
|
+
Make sure you have **Node & Watchman** installed before running the sample application:
|
|
56
77
|
```bash
|
|
57
|
-
# install
|
|
78
|
+
# install Watchman
|
|
58
79
|
brew install watchman
|
|
59
80
|
|
|
60
81
|
# install Node
|
|
@@ -64,23 +85,34 @@ brew install node
|
|
|
64
85
|
**To install & run the sample application:**
|
|
65
86
|
1. Git clone the repository:
|
|
66
87
|
```bash
|
|
67
|
-
git clone https://github.com/
|
|
88
|
+
git clone https://github.com/microblink/blinkid-react-native.git
|
|
68
89
|
```
|
|
69
|
-
2. Position to the obtained
|
|
90
|
+
2. Position to the obtained `blinkid-react-native` folder
|
|
70
91
|
```bash
|
|
71
|
-
cd blinkid-react-native
|
|
92
|
+
cd blinkid-react-native
|
|
72
93
|
```
|
|
73
|
-
3.
|
|
94
|
+
3. Run the `initBlinkIdReactNativeSample.sh` script to create a sample app, with required configurations applied.
|
|
95
|
+
```bash
|
|
96
|
+
./initBlinkIdReactNativeSample.sh
|
|
97
|
+
```
|
|
98
|
+
4. After the script finishes running, position to the `BlinkIdSample` folder.
|
|
99
|
+
|
|
100
|
+
### <a name="android-sample-application"></a> Android sample application
|
|
74
101
|
|
|
75
|
-
|
|
102
|
+
Running the sample application on Android
|
|
76
103
|
|
|
77
|
-
|
|
104
|
+
#### <a name="on-an-emulator"></a> On an emulator:
|
|
78
105
|
|
|
106
|
+
1. Execute the following command:
|
|
107
|
+
```bash
|
|
108
|
+
npx react-native start
|
|
109
|
+
```
|
|
110
|
+
2. In another terminal, run:
|
|
79
111
|
```bash
|
|
80
112
|
npx react-native run-android
|
|
81
113
|
```
|
|
82
114
|
|
|
83
|
-
**
|
|
115
|
+
**Alternative: Run directly via Android Studio:**
|
|
84
116
|
|
|
85
117
|
1. Execute the following command:
|
|
86
118
|
```bash
|
|
@@ -88,7 +120,27 @@ npx react-native start
|
|
|
88
120
|
```
|
|
89
121
|
2. Open the `android` folder via Android Studio in the `BlinkIdSample` folder to run the Android sample application.
|
|
90
122
|
|
|
91
|
-
|
|
123
|
+
#### <a name="on-a-physical-device-via-usb"></a> On a physical device via USB:
|
|
124
|
+
|
|
125
|
+
1. Connect your device via USB and enable USB debugging in Developer Options.
|
|
126
|
+
2. Forward the Metro bundler port:
|
|
127
|
+
```bash
|
|
128
|
+
adb reverse tcp:8081 tcp:8081
|
|
129
|
+
```
|
|
130
|
+
3. Start Metro in one terminal:
|
|
131
|
+
```bash
|
|
132
|
+
npx react-native start
|
|
133
|
+
```
|
|
134
|
+
4. In another terminal, build and run on the device:
|
|
135
|
+
```bash
|
|
136
|
+
npx react-native run-android
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
or open it in Android Studio and run it on the physical device from there.
|
|
140
|
+
|
|
141
|
+
### <a name="ios-sample-application"></a> iOS sample application
|
|
142
|
+
|
|
143
|
+
Running the sample application on iOS
|
|
92
144
|
|
|
93
145
|
1. For running the sample application on iOS, execute the following command:
|
|
94
146
|
```bash
|
|
@@ -100,336 +152,492 @@ npx react-native start
|
|
|
100
152
|
|
|
101
153
|
## <a name="plugin-integration"></a> Plugin integration
|
|
102
154
|
|
|
103
|
-
1. To add the BlinkID plugin to a React Native project, first create empty project if needed:
|
|
155
|
+
1. To add the BlinkID plugin to a React Native project, first create an empty project if needed:
|
|
104
156
|
```bash
|
|
105
|
-
npx @react-native-community/cli init YourAppName --package-name YourPackageName --title YourAppTitle --version "
|
|
157
|
+
npx @react-native-community/cli init YourAppName --package-name YourPackageName --title YourAppTitle --version "0.82.0"
|
|
106
158
|
```
|
|
107
159
|
|
|
108
|
-
|
|
160
|
+
2. Install the `@microblink/blinkid-react-native` dependency:
|
|
109
161
|
```bash
|
|
110
|
-
|
|
162
|
+
npm install --save @microblink/blinkid-react-native@8000.0.0
|
|
111
163
|
```
|
|
112
164
|
|
|
113
|
-
|
|
165
|
+
3. Complete the platform-specific setup below.
|
|
114
166
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
repositories
|
|
118
|
-
|
|
119
|
-
|
|
167
|
+
### <a name="android-setup"></a> Android setup
|
|
168
|
+
|
|
169
|
+
Add **Maven Central** to your project repositories.
|
|
170
|
+
|
|
171
|
+
In `android/settings.gradle` (or your root `build.gradle`, depending on your React Native version):
|
|
172
|
+
|
|
173
|
+
```groovy
|
|
174
|
+
dependencyResolutionManagement {
|
|
175
|
+
repositories {
|
|
176
|
+
google()
|
|
177
|
+
mavenCentral()
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
Ensure your app uses **Kotlin v2.2.21** or newer, **minSdkVersion 24** or newer, and **compileSdkVersion 36** or newer. Use the Android Gradle Plugin and Gradle versions shipped with your React Native release (for example, React Native 0.82.x uses AGP 8.12 and Gradle 9.0).
|
|
183
|
+
|
|
184
|
+
`blinkid-ux` ships its Compose-based scanning UI as a precompiled AAR, so client apps do not need to enable the Compose compiler plugin, `buildFeatures.compose`, or a Compose BOM unless they compile their own Compose code.
|
|
185
|
+
|
|
186
|
+
Set the Kotlin version in your project-level `android/build.gradle`:
|
|
187
|
+
|
|
188
|
+
```groovy
|
|
189
|
+
buildscript {
|
|
190
|
+
ext {
|
|
191
|
+
kotlinVersion = "2.2.21"
|
|
192
|
+
}
|
|
120
193
|
}
|
|
121
194
|
```
|
|
122
195
|
|
|
123
|
-
|
|
196
|
+
The sample initialization script (`initBlinkIdReactNativeSample.sh`) contains the complete, tested Android configuration if you need a reference implementation.
|
|
197
|
+
|
|
198
|
+
### <a name="ios-setup"></a> iOS setup
|
|
199
|
+
|
|
200
|
+
1. Set the minimum iOS deployment target to **16.0** in your `ios/Podfile`:
|
|
201
|
+
```ruby
|
|
202
|
+
platform :ios, '16.0'
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
2. Install pods:
|
|
206
|
+
```bash
|
|
207
|
+
cd ios && pod install
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
The plugin ships with vendored `BlinkID.xcframework` and `BlinkIDUX.xcframework` frameworks.
|
|
211
|
+
|
|
212
|
+
### <a name="permissions"></a> Permissions
|
|
213
|
+
|
|
214
|
+
Add the required usage descriptions to your app:
|
|
215
|
+
|
|
216
|
+
**iOS** — in `Info.plist`:
|
|
217
|
+
```xml
|
|
218
|
+
<key>NSCameraUsageDescription</key>
|
|
219
|
+
<string>Camera access is required for document scanning</string>
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
If you use DirectAPI with images from the photo library, also add:
|
|
223
|
+
```xml
|
|
224
|
+
<key>NSPhotoLibraryUsageDescription</key>
|
|
225
|
+
<string>Photo library access is required for document image upload</string>
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
**Android** — camera permission is typically merged from the BlinkID UX library. If needed, add to `AndroidManifest.xml`:
|
|
229
|
+
```xml
|
|
230
|
+
<uses-permission android:name="android.permission.CAMERA" />
|
|
231
|
+
```
|
|
124
232
|
|
|
125
233
|
## <a name="plugin-usage"></a> Plugin usage
|
|
126
|
-
|
|
234
|
+
|
|
235
|
+
**Note:** The plugin usage process can be found in the sample app `App.tsx` file [here](https://github.com/microblink/blinkid-react-native/blob/master/sample_files/App.tsx).
|
|
236
|
+
|
|
237
|
+
### <a name="imports-and-license-key"></a> Imports and license key
|
|
238
|
+
|
|
239
|
+
After adding the blinkid-react-native dependency, import the API and set your platform-specific license key:
|
|
240
|
+
|
|
127
241
|
```typescript
|
|
242
|
+
import { Platform } from 'react-native';
|
|
128
243
|
import {
|
|
129
244
|
performScan,
|
|
130
245
|
performDirectApiScan,
|
|
246
|
+
loadBlinkIdSdk,
|
|
247
|
+
unloadBlinkIdSdk,
|
|
248
|
+
Country,
|
|
249
|
+
DocumentType,
|
|
250
|
+
Region,
|
|
251
|
+
type BlinkIdScanningResult,
|
|
252
|
+
type BlinkIdSdkSettings,
|
|
253
|
+
type BlinkIdSessionSettings,
|
|
254
|
+
type BlinkIdScanningSettings,
|
|
255
|
+
type BlinkIdScanningUxSettings,
|
|
131
256
|
} from '@microblink/blinkid-react-native';
|
|
257
|
+
|
|
258
|
+
const licenseKey = Platform.select({
|
|
259
|
+
ios: 'your-ios-key',
|
|
260
|
+
android: 'your-android-key',
|
|
261
|
+
})!;
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
All settings are **plain objects**. You do not need class constructors.
|
|
265
|
+
|
|
266
|
+
### <a name="configure-scanning-modules"></a> Configure scanning modules
|
|
267
|
+
|
|
268
|
+
Scanning behavior is configured through `BlinkIdScanningSettings`, which contains up to four module settings. Include only the modules you want to use — omitting a module disables it.
|
|
269
|
+
|
|
270
|
+
```typescript
|
|
271
|
+
const scanningSettings: BlinkIdScanningSettings = {
|
|
272
|
+
// Document capture: detection, image quality, cropped images
|
|
273
|
+
documentCaptureModule: {
|
|
274
|
+
documentImageReturnEnabled: true,
|
|
275
|
+
faceImageExtractionEnabled: true,
|
|
276
|
+
dotsPerInch: 250,
|
|
277
|
+
blurSensitivityLevel: 'mid',
|
|
278
|
+
imageWithBlurRejected: true,
|
|
279
|
+
glareSensitivityLevel: 'mid',
|
|
280
|
+
imageWithGlareRejected: true,
|
|
281
|
+
passportDataPageScanOnly: true,
|
|
282
|
+
},
|
|
283
|
+
|
|
284
|
+
// MRZ extraction (passports, visas, etc.)
|
|
285
|
+
mrzModule: {
|
|
286
|
+
presenceMandatory: false,
|
|
287
|
+
},
|
|
288
|
+
|
|
289
|
+
// Barcode extraction (PDF417, QR, etc.)
|
|
290
|
+
barcodeModule: {
|
|
291
|
+
pdf417ScanningEnabled: true,
|
|
292
|
+
qrScanningEnabled: true,
|
|
293
|
+
barcodeImageReturnEnabled: false,
|
|
294
|
+
},
|
|
295
|
+
|
|
296
|
+
// VIZ extraction (visual fields on the document)
|
|
297
|
+
vizModule: {
|
|
298
|
+
signatureImageExtractionEnabled: true,
|
|
299
|
+
characterValidationEnabled: true,
|
|
300
|
+
resultAggregationEnabled: true,
|
|
301
|
+
},
|
|
302
|
+
|
|
303
|
+
// Max character mismatches allowed per field during cross-side data matching (default: 0)
|
|
304
|
+
maxAllowedMismatchesPerField: 0,
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
const sessionSettings: BlinkIdSessionSettings = {
|
|
308
|
+
scanningMode: 'automatic', // or 'single'
|
|
309
|
+
scanningSettings,
|
|
310
|
+
// Timeouts are in milliseconds. Set to 0 to disable.
|
|
311
|
+
stepTimeoutDuration: 60000, // default: 60 s
|
|
312
|
+
inactivityTimeoutDuration: 10000, // default: 10 s
|
|
313
|
+
};
|
|
132
314
|
```
|
|
133
|
-
|
|
315
|
+
|
|
316
|
+
**Module-only scanning examples:**
|
|
317
|
+
|
|
318
|
+
- **Barcode only** — include `barcodeModule`, omit `mrzModule` and `vizModule`.
|
|
319
|
+
- **Document capture only** (similar to BlinkID Capture) — include only `documentCaptureModule`.
|
|
320
|
+
|
|
321
|
+
> **Note:** When using PDF417 and QR barcode scanning, enable both `pdf417ScanningEnabled` and `qrScanningEnabled` together. The analyzer treats them as a combined detection stage.
|
|
322
|
+
|
|
323
|
+
For DirectAPI with pre-cropped document images, set `documentCaptureModule.inputImageCropped` to `true`.
|
|
324
|
+
|
|
325
|
+
Module configuration helpers can be found in [ScanningModulesConfig.ts](https://github.com/microblink/blinkid-react-native/blob/master/sample_files/ScanningModulesConfig.ts).
|
|
326
|
+
|
|
327
|
+
### <a name="default-blinkid-ux-camera-scanning"></a> Default BlinkID UX (camera scanning)
|
|
328
|
+
|
|
134
329
|
```typescript
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
330
|
+
const sdkSettings: BlinkIdSdkSettings = {
|
|
331
|
+
licenseKey,
|
|
332
|
+
downloadResources: true,
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
const scanningUxSettings: BlinkIdScanningUxSettings = {
|
|
336
|
+
showHelpButton: true,
|
|
337
|
+
showOnboardingDialog: true,
|
|
338
|
+
allowHapticFeedback: true,
|
|
339
|
+
preferredCamera: 'back',
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
const classFilter = {
|
|
343
|
+
includeDocuments: [
|
|
344
|
+
{ country: Country.Croatia, documentType: DocumentType.Id },
|
|
345
|
+
{ country: Country.USA, region: Region.Texas, documentType: DocumentType.Dl },
|
|
346
|
+
],
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
try {
|
|
350
|
+
const result: BlinkIdScanningResult = await performScan({
|
|
351
|
+
sdkSettings,
|
|
352
|
+
sessionSettings,
|
|
353
|
+
scanningUxSettings,
|
|
354
|
+
classFilter,
|
|
355
|
+
// redactionSettingsResolver, // optional — see Document redaction
|
|
139
356
|
});
|
|
357
|
+
|
|
358
|
+
console.log(result.firstName?.value);
|
|
359
|
+
console.log(result.firstDocumentImage); // base64, if enabled
|
|
360
|
+
} catch (error) {
|
|
361
|
+
console.log(`Error during scan: ${error}`);
|
|
362
|
+
}
|
|
140
363
|
```
|
|
141
|
-
**Default BlinkID UX**
|
|
142
|
-
1. Set all of the necessary BlinkID settings (SDK settings, session settings, and the scanning settings). If the mentioned settings are not modified, the default values will be used:
|
|
143
|
-
```typescript
|
|
144
364
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
* Create and modify the Session Settings
|
|
154
|
-
*/
|
|
155
|
-
const sessionSettings = new BlinkIdSessionSettings();
|
|
156
|
-
sessionSettings.scanningMode = ScanningMode.Automatic;
|
|
157
|
-
/**
|
|
158
|
-
* Create and modify the scanning settings
|
|
159
|
-
*/
|
|
160
|
-
const scanningSettings = new BlinkIdScanningSettings();
|
|
161
|
-
scanningSettings.glareDetectionLevel = DetectionLevel.Mid;
|
|
162
|
-
scanningSettings.anonymizationMode = AnonymizationMode.FullResult;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Create and modify the Image settings
|
|
166
|
-
*/
|
|
167
|
-
const croppedImageSettings = new CroppedImageSettings();
|
|
168
|
-
croppedImageSettings.returnDocumentImage = true;
|
|
169
|
-
croppedImageSettings.returnFaceImage = true;
|
|
170
|
-
croppedImageSettings.returnSignatureImage = true;
|
|
171
|
-
/**
|
|
172
|
-
* Place the image settings in the scanning settings
|
|
173
|
-
*/
|
|
174
|
-
scanningSettings.croppedImageSettings = croppedImageSettings;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Place the scanning settings in the session settings
|
|
178
|
-
*/
|
|
179
|
-
sessionSettings.scanningSettings = scanningSettings;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Modify the BlinkID UI settings for UI customization.
|
|
183
|
-
* This parameter is optional.
|
|
184
|
-
*/
|
|
185
|
-
const blinkIdScanningUxSettings = new BlinkIdScanningUxSettings();
|
|
186
|
-
blinkIdScanningUxSettings.showHelpButton = true;
|
|
187
|
-
blinkIdScanningUxSettings.showOnboardingDialog = true;
|
|
188
|
-
blinkIdScanningUxSettings.allowHapticFeedback = true;
|
|
189
|
-
blinkIdScanningUxSettings.preferredCamera = PreferredCamera.Back;
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Add the document class filter. This parameter is optional.
|
|
193
|
-
*/
|
|
194
|
-
const classFilter = new ClassFilter();
|
|
195
|
-
classFilter.includeDocuments = [
|
|
196
|
-
new DocumentFilter(Country.Croatia, undefined, DocumentType.Id),
|
|
197
|
-
new DocumentFilter(Country.USA, Region.Texas, DocumentType.Dl),
|
|
198
|
-
];
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
2. Call the `performScan` scanning method, handle the results and catch any errors:
|
|
202
|
-
```typescript
|
|
203
|
-
/**
|
|
204
|
-
* Call the performScan method, where the SDK and session settings
|
|
205
|
-
* need to be passed.
|
|
206
|
-
*
|
|
207
|
-
* Here, you can also pass the optional BlinkIdUiSettings and ClassFilter
|
|
208
|
-
* parameters.
|
|
209
|
-
*/
|
|
210
|
-
await performScan(sdkSettings, sessionSettings, blinkIdScanningUxSettings)
|
|
211
|
-
.then((result: BlinkIdScanningResult) => {
|
|
212
|
-
// handle the results here.
|
|
213
|
-
console.log(result.firstName?.value);
|
|
214
|
-
})
|
|
215
|
-
.catch((error) => {
|
|
216
|
-
// handle any errors here.
|
|
217
|
-
console.log(`Error during scan: ${error}`);
|
|
218
|
-
});
|
|
219
|
-
```
|
|
220
|
-
**BlinkID DirectAPI**
|
|
221
|
-
1. Set all of the necessary BlinkID settings (SDK settings, session settings, and the scanning settings). If the mentioned settings are not modified, the default values will be used:
|
|
365
|
+
### <a name="blinkid-directapi-static-images"></a> BlinkID DirectAPI (static images)
|
|
366
|
+
|
|
367
|
+
DirectAPI extracts data from Base64-encoded static images instead of using the camera UI.
|
|
368
|
+
|
|
369
|
+
- Pass **two images** with `scanningMode: 'automatic'` (front side first, back side second).
|
|
370
|
+
- Pass **one image** with `scanningMode: 'single'`.
|
|
371
|
+
- Set `documentCaptureModule.inputImageCropped: true` when images are already cropped and perspective-corrected.
|
|
372
|
+
|
|
222
373
|
```typescript
|
|
374
|
+
const firstImageBase64 = 'your-base64-image';
|
|
375
|
+
const secondImageBase64 = 'your-base64-image'; // optional for single-side
|
|
376
|
+
|
|
377
|
+
try {
|
|
378
|
+
const result = await performDirectApiScan({
|
|
379
|
+
sdkSettings: { licenseKey, downloadResources: true },
|
|
380
|
+
sessionSettings: {
|
|
381
|
+
scanningMode: 'automatic',
|
|
382
|
+
scanningSettings: {
|
|
383
|
+
documentCaptureModule: {
|
|
384
|
+
documentImageReturnEnabled: true,
|
|
385
|
+
inputImageCropped: false,
|
|
386
|
+
},
|
|
387
|
+
mrzModule: {},
|
|
388
|
+
barcodeModule: { pdf417ScanningEnabled: true, qrScanningEnabled: true },
|
|
389
|
+
vizModule: {},
|
|
390
|
+
},
|
|
391
|
+
},
|
|
392
|
+
firstImage: firstImageBase64,
|
|
393
|
+
secondImage: secondImageBase64,
|
|
394
|
+
// redactionSettings, // optional — see Document redaction
|
|
395
|
+
});
|
|
396
|
+
|
|
397
|
+
console.log(result.fullName?.value);
|
|
398
|
+
} catch (error) {
|
|
399
|
+
console.log(`Error during scan: ${error}`);
|
|
400
|
+
}
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
### <a name="document-redaction"></a> Document redaction
|
|
404
|
+
|
|
405
|
+
In v8000, anonymization has been renamed to **redaction**. For camera scanning, use a `RedactionSettingsResolver` to apply per-document redaction rules. For DirectAPI, pass a single `RedactionSettings` object.
|
|
223
406
|
|
|
224
|
-
/**
|
|
225
|
-
* Set the BlinkID SDK settings
|
|
226
|
-
* Add the license key here from the code above
|
|
227
|
-
*/
|
|
228
|
-
const sdkSettings = new BlinkIdSdkSettings(licenseKey);
|
|
229
|
-
sdkSettings.downloadResources = true;
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* Create and modify the Session Settings
|
|
233
|
-
*/
|
|
234
|
-
const sessionSettings = new BlinkIdSessionSettings();
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* Important: if two images are being passed, use the `Automatic`
|
|
238
|
-
* scanning mode
|
|
239
|
-
* if just one image is being passed, use the `Single` scanning mode.
|
|
240
|
-
*/
|
|
241
|
-
sessionSettings.scanningMode = ScanningMode.Automatic;
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Create and modify the scanning settings
|
|
245
|
-
*/
|
|
246
|
-
const scanningSettings = new BlinkIdScanningSettings();
|
|
247
|
-
scanningSettings.glareDetectionLevel = DetectionLevel.Mid;
|
|
248
|
-
/**
|
|
249
|
-
* if the input images consist solely
|
|
250
|
-
* of the cropped document image, set the
|
|
251
|
-
* `scanCroppedDocumentImage` to true.
|
|
252
|
-
*/
|
|
253
|
-
// scanningSettings.scanCroppedDocumentImage = true;
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* Create and modify the Image settings
|
|
257
|
-
*/
|
|
258
|
-
const croppedImageSettings = new CroppedImageSettings();
|
|
259
|
-
croppedImageSettings.returnDocumentImage = true;
|
|
260
|
-
croppedImageSettings.returnFaceImage = true;
|
|
261
|
-
croppedImageSettings.returnSignatureImage = true;
|
|
262
|
-
/**
|
|
263
|
-
* Place the image settings in the scanning settings
|
|
264
|
-
*/
|
|
265
|
-
scanningSettings.croppedImageSettings = croppedImageSettings;
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Place the scanning settings in the session settings
|
|
269
|
-
*/
|
|
270
|
-
sessionSettings.scanningSettings = scanningSettings;
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Add the Base64 string of the first side of the document
|
|
274
|
-
*/
|
|
275
|
-
const firstImageBase64 = "your-base64-image";
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* Add the Base64 string of the second side of the document
|
|
279
|
-
* This paramater is optional if only one side
|
|
280
|
-
* of the document is requred.
|
|
281
|
-
*/
|
|
282
|
-
const secondImageBase64 = "your-base64-image";
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
2. Call the `performDirectApiScan` scanning method, handle the results and catch any errors:
|
|
286
407
|
```typescript
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
.
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
408
|
+
import { FieldType, type RedactionSettingsResolver } from '@microblink/blinkid-react-native';
|
|
409
|
+
|
|
410
|
+
const redactionSettingsResolver: RedactionSettingsResolver = {
|
|
411
|
+
documentRedactionList: [
|
|
412
|
+
{
|
|
413
|
+
mode: 'fullResult',
|
|
414
|
+
fields: [FieldType.FirstName, FieldType.LastName],
|
|
415
|
+
documentNumberRedactionSettings: {
|
|
416
|
+
prefixDigitsVisible: 0,
|
|
417
|
+
suffixDigitsVisible: 1,
|
|
418
|
+
},
|
|
419
|
+
redactMrzResult: false,
|
|
420
|
+
redactBarcodeResult: false,
|
|
421
|
+
documentFilter: {
|
|
422
|
+
country: Country.USA,
|
|
423
|
+
region: Region.California,
|
|
424
|
+
documentType: DocumentType.Id,
|
|
425
|
+
},
|
|
426
|
+
},
|
|
427
|
+
],
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
// Camera scanning — pass redactionSettingsResolver to performScan
|
|
431
|
+
await performScan({ sdkSettings, sessionSettings, redactionSettingsResolver });
|
|
432
|
+
|
|
433
|
+
// DirectAPI — pass redactionSettings to performDirectApiScan
|
|
434
|
+
await performDirectApiScan({
|
|
435
|
+
sdkSettings,
|
|
436
|
+
sessionSettings,
|
|
437
|
+
firstImage: firstImageBase64,
|
|
438
|
+
redactionSettings: {
|
|
439
|
+
mode: 'fullResult',
|
|
440
|
+
fields: [FieldType.DocumentNumber],
|
|
441
|
+
redactMrzResult: false,
|
|
442
|
+
redactBarcodeResult: false,
|
|
443
|
+
},
|
|
444
|
+
});
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
Redaction modes: `none`, `imageOnly`, `resultFieldsOnly`, `fullResult`.
|
|
310
448
|
|
|
311
449
|
## <a name="plugin-specifics"></a> Plugin specifics
|
|
312
|
-
The BlinkID plugin implementation is located in the `src` folder [here](https://github.com/
|
|
450
|
+
The BlinkID plugin implementation is located in the `src` folder [here](https://github.com/microblink/blinkid-react-native/tree/master/BlinkID/src), while platform-specific implementation is located in the `android` and `ios` folders.
|
|
313
451
|
|
|
314
452
|
### <a name="scanning-methods"></a> Scanning methods
|
|
315
|
-
Currently, the BlinkID plugin contains
|
|
453
|
+
Currently, the BlinkID plugin contains two main scanning methods: `performScan` and `performDirectApiScan`.
|
|
316
454
|
|
|
317
455
|
**The `performScan` method**
|
|
318
456
|
|
|
319
|
-
|
|
320
|
-
It takes the following parameters:
|
|
321
|
-
1. BlinkID SDK settings
|
|
322
|
-
2. BlinkID session settings
|
|
323
|
-
4. The optional BlinkID UI settings for UI customization.
|
|
324
|
-
3. The optional ClassFilter object for filtering documents.
|
|
325
|
-
|
|
326
|
-
**BlinkID SDK Settings** - `BlinkIdSdkSettings`: the class that contains all of the available SDK settings. It contains settings for the license key, and how the models, that the SDK needs for the scanning process, should be obtained.
|
|
457
|
+
Launches the BlinkID scanning process with the default UX.
|
|
327
458
|
|
|
328
|
-
|
|
459
|
+
Recommended call style — single settings object:
|
|
329
460
|
|
|
330
|
-
|
|
461
|
+
```typescript
|
|
462
|
+
performScan({
|
|
463
|
+
sdkSettings, // BlinkIdSdkSettings (required)
|
|
464
|
+
sessionSettings, // BlinkIdSessionSettings (required)
|
|
465
|
+
scanningUxSettings, // BlinkIdScanningUxSettings (optional)
|
|
466
|
+
classFilter, // ClassFilter (optional)
|
|
467
|
+
redactionSettingsResolver, // RedactionSettingsResolver (optional)
|
|
468
|
+
});
|
|
469
|
+
```
|
|
331
470
|
|
|
332
|
-
|
|
471
|
+
| Parameter | Description |
|
|
472
|
+
| --- | --- |
|
|
473
|
+
| `sdkSettings` | License key, resource download configuration |
|
|
474
|
+
| `sessionSettings` | Scanning mode, module settings, timeouts |
|
|
475
|
+
| `scanningUxSettings` | Help button, onboarding dialog, haptic feedback, preferred camera |
|
|
476
|
+
| `classFilter` | Include/exclude documents by country, region, and type |
|
|
477
|
+
| `redactionSettingsResolver` | Per-document redaction rules applied before the result is finalized |
|
|
333
478
|
|
|
334
|
-
|
|
479
|
+
Returns `BlinkIdScanningResult` ([implementation](https://github.com/microblink/blinkid-react-native/blob/master/BlinkID/src/index.tsx)).
|
|
335
480
|
|
|
336
481
|
**The `performDirectApiScan` method**
|
|
337
482
|
|
|
338
|
-
|
|
339
|
-
It takes the following parameters:
|
|
340
|
-
1. BlinkID SDK settings
|
|
341
|
-
2. BlinkID session settings
|
|
342
|
-
3. First image string in the Base64 format
|
|
343
|
-
4. The optional second image string in the Base64 format
|
|
344
|
-
|
|
345
|
-
**BlinkID SDK Settings** - `BlinkIdSdkSettings`: the class that contains all of the available SDK settings. It contains settings for the license key, and how the models, that the SDK needs for the scanning process, should be obtained.
|
|
483
|
+
Extracts document information from static Base64 images.
|
|
346
484
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
485
|
+
```typescript
|
|
486
|
+
performDirectApiScan({
|
|
487
|
+
sdkSettings, // BlinkIdSdkSettings (required)
|
|
488
|
+
sessionSettings, // BlinkIdSessionSettings (required)
|
|
489
|
+
firstImage, // Base64 string (required)
|
|
490
|
+
secondImage, // Base64 string (optional)
|
|
491
|
+
redactionSettings, // RedactionSettings (optional)
|
|
492
|
+
});
|
|
493
|
+
```
|
|
352
494
|
|
|
353
|
-
|
|
495
|
+
Returns `BlinkIdScanningResult` ([implementation](https://github.com/microblink/blinkid-react-native/blob/master/BlinkID/src/index.tsx)).
|
|
354
496
|
|
|
355
497
|
### <a name="sdk-loading--unloading"></a> SDK loading & unloading
|
|
356
|
-
The BlinkID SDK also contains methods for loading and unloading. These methods can be called before the scanning methods (mentioned above), and are helpful to preload the neccessary resources and decrease the waiting time for the scanning session, but also to remove any resources after the scanning sessions ends.
|
|
357
498
|
|
|
358
|
-
**The `loadBlinkIdSdk` method**
|
|
359
499
|
|
|
360
|
-
The `loadBlinkIdSdk` method
|
|
500
|
+
**The `loadBlinkIdSdk` method**
|
|
361
501
|
|
|
362
|
-
|
|
502
|
+
Creates or retrieves the BlinkID SDK instance. Handles initialization, resource downloading, and license verification. Call in advance to reduce first-scan latency.
|
|
363
503
|
|
|
364
|
-
|
|
504
|
+
```typescript
|
|
505
|
+
await loadBlinkIdSdk({ sdkSettings: { licenseKey, downloadResources: true } });
|
|
506
|
+
```
|
|
365
507
|
|
|
366
|
-
|
|
508
|
+
If you do not call `loadBlinkIdSdk`, it is invoked automatically when a scan starts.
|
|
367
509
|
|
|
368
510
|
**The `unloadBlinkIdSdk` method**
|
|
369
511
|
|
|
370
|
-
|
|
371
|
-
|
|
512
|
+
Terminates the SDK and releases resources. Must reinitialize before the next scan.
|
|
513
|
+
|
|
514
|
+
```typescript
|
|
515
|
+
await unloadBlinkIdSdk({ deleteCachedResources: false });
|
|
516
|
+
```
|
|
372
517
|
|
|
373
|
-
|
|
518
|
+
Set `deleteCachedResources` to `true` to also delete downloaded and cached SDK resources from the device.
|
|
374
519
|
|
|
375
|
-
|
|
520
|
+
`unloadBlinkIdSdk` is called automatically after each successful scan session.
|
|
376
521
|
|
|
377
522
|
### <a name="blinkid-settings"></a> BlinkID Settings
|
|
378
|
-
The BlinkID SDK contains various settings, modifying different parts of scanning process:
|
|
379
|
-
1. [BlinkID SDK settings](https://github.com/BlinkID/blinkid-react-native/blob/master/BlinkID/src/blinkIdSettings.ts#L14) - `BlinkIdSdkSettings` \
|
|
380
|
-
These settings are used for the initialization of the BlinkID SDK.
|
|
381
523
|
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
524
|
+
| Setting | Type | Description |
|
|
525
|
+
| --- | --- | --- |
|
|
526
|
+
| SDK settings | `BlinkIdSdkSettings` | License key, resource download, proxy URL |
|
|
527
|
+
| Session settings | `BlinkIdSessionSettings` | Scanning mode, module settings, step/inactivity timeouts (ms; `0` disables) |
|
|
528
|
+
| Scanning settings | `BlinkIdScanningSettings` | Module configuration (see below) |
|
|
529
|
+
| UX settings | `BlinkIdScanningUxSettings` | UI customization during scanning |
|
|
530
|
+
| Class filter | `ClassFilter` | Document include/exclude rules |
|
|
531
|
+
| Redaction | `RedactionSettings` / `RedactionSettingsResolver` | Field and image redaction |
|
|
532
|
+
|
|
533
|
+
**Scanning module settings**
|
|
534
|
+
|
|
535
|
+
| Module | Type | Key settings |
|
|
536
|
+
| --- | | --- |
|
|
537
|
+
| Document capture | `DocumentCaptureModuleSettings` | Image quality (blur, glare, tilt, lighting), cropped/input image return, face extraction, passport data page only |
|
|
538
|
+
| MRZ | `MrzModuleSettings` | `presenceMandatory` |
|
|
539
|
+
| Barcode | `BarcodeModuleSettings` | PDF417, QR, retail barcode types, barcode image return |
|
|
540
|
+
| VIZ | `VizModuleSettings` | Signature extraction, character validation, result aggregation |
|
|
541
|
+
|
|
542
|
+
The [blinkIdSettings.ts](https://github.com/microblink/blinkid-react-native/blob/master/BlinkID/src/blinkIdSettings.ts) and [types.ts](https://github.com/microblink/blinkid-react-native/blob/master/BlinkID/src/types.ts) files contain all available settings with inline documentation.
|
|
385
543
|
|
|
386
|
-
|
|
387
|
-
These settings represent the configurable settings for scanning a document.`
|
|
388
|
-
This class defines various parameters and policies related to the scanning process, including image quality handling, data extraction and anonymization, along with options for frame processing and image extraction.
|
|
544
|
+
### <a name="blinkid-results"></a> BlinkID Results
|
|
389
545
|
|
|
390
|
-
|
|
391
|
-
Allows customization of various aspects of the UI used during the scanning process.
|
|
546
|
+
The scanning result is stored in `BlinkIdScanningResult`. It contains extracted data and images from the document.
|
|
392
547
|
|
|
393
|
-
|
|
394
|
-
These settings represent the image cropping settings.
|
|
548
|
+
Key result members:
|
|
395
549
|
|
|
396
|
-
**
|
|
550
|
+
1. **Document class info** — `documentClassInfo` (`DocumentClassInfo`)
|
|
551
|
+
2. **Data match information** — `dataMatchResult` (`DataMatchResult`)
|
|
552
|
+
3. **Per-side results** — `subResults` (`SingleSideScanningResult[]`) — contains VIZ, MRZ, and barcode data per side
|
|
553
|
+
4. **Aggregated fields** — top-level fields such as `firstName`, `lastName`, `documentNumber`, etc.
|
|
554
|
+
5. **Images** — `firstDocumentImage`, `secondDocumentImage`, `faceImage`, `signatureImage`, `firstInputImage`, `secondInputImage`, `barcodeImage`
|
|
397
555
|
|
|
398
|
-
|
|
556
|
+
Each `SingleSideScanningResult` contains:
|
|
557
|
+
- `viz` — Visual Inspection Zone data
|
|
558
|
+
- `mrz` — Machine Readable Zone data
|
|
559
|
+
- `barcode` — Barcode data
|
|
560
|
+
- `documentImage`, `faceImage`, `signatureImage`, `inputImage`
|
|
399
561
|
|
|
400
|
-
- The native documentation for the above mentioned settings can be found here for [Android](https://blinkid.github.io/blinkid-android/blinkid-core/com.microblink.blinkid.core/index.html) & [iOS](https://blinkid.github.io/blinkid-swift-package/documentation/blinkid/).
|
|
401
562
|
|
|
402
|
-
|
|
563
|
+
Full result types: [blinkIdResult.ts](https://github.com/microblink/blinkid-react-native/blob/master/BlinkID/src/blinkIdResult.ts) and [types.ts](https://github.com/microblink/blinkid-react-native/blob/master/BlinkID/src/types.ts).
|
|
403
564
|
|
|
404
|
-
|
|
565
|
+
## <a name="whats-new-in-v8000"></a> What's new in v8000
|
|
405
566
|
|
|
406
|
-
|
|
567
|
+
BlinkID v8000 introduces a **modular recognition architecture**. Instead of flat scanning settings and fallback recognition modes, extraction is driven by four independent modules that you enable and configure separately:
|
|
407
568
|
|
|
408
|
-
|
|
569
|
+
| Module | Purpose |
|
|
570
|
+
| --- | --- |
|
|
571
|
+
| **Document capture** | Document detection, image quality checks (blur, glare, tilt, lighting), and cropped image extraction |
|
|
572
|
+
| **MRZ** | Machine Readable Zone detection and parsing (passports, visas, ID cards) |
|
|
573
|
+
| **Barcode** | 1D/2D barcode detection and parsing (PDF417, QR, retail codes, and more) |
|
|
574
|
+
| **VIZ** | Visual Inspection Zone field extraction, character validation, and signature images |
|
|
409
575
|
|
|
410
|
-
|
|
411
|
-
Scanning mode used to scan the current document.
|
|
576
|
+
Other notable changes:
|
|
412
577
|
|
|
413
|
-
|
|
414
|
-
|
|
578
|
+
- Settings are **plain TypeScript objects** (no class constructors).
|
|
579
|
+
- Scanning methods accept a **single settings object** (recommended) or legacy positional arguments.
|
|
580
|
+
- **Anonymization** has been renamed to **redaction** (`RedactionSettings`, `RedactionSettingsResolver`).
|
|
581
|
+
- Image return and quality settings moved from `CroppedImageSettings` into `documentCaptureModule` and `vizModule`.
|
|
582
|
+
- Detection levels (`DetectionLevel`) are replaced by **sensitivity levels** (`SensitivityLevel`: `off`, `low`, `mid`, `high`).
|
|
583
|
+
- Scanning sessions include **step** and **inactivity timeouts** on `BlinkIdSessionSettings` (milliseconds; defaults `60000` and `10000`). Set either to `0` to disable.
|
|
415
584
|
|
|
416
|
-
|
|
417
|
-
Info on whether the data extracted from multiple sides matches.
|
|
585
|
+
### <a name="migrating-from-v7x"></a> Migrating from v7.x
|
|
418
586
|
|
|
419
|
-
|
|
420
|
-
Represents the result of scanning a single side of the document.\
|
|
421
|
-
Contains the data extracted from the Visual Inspection Zone, Machine Readable Zone, barcode, the input image, and the cropped document, face, and signature images.
|
|
587
|
+
If you are upgrading from `@microblink/blinkid-react-native@7.x` (e.g. 7.7.0), the following changes apply.
|
|
422
588
|
|
|
423
|
-
|
|
424
|
-
Represents the result of the image crop transformation with additional details.
|
|
589
|
+
#### Settings are plain objects
|
|
425
590
|
|
|
426
|
-
|
|
591
|
+
```typescript
|
|
592
|
+
// v7
|
|
593
|
+
const sdkSettings = new BlinkIdSdkSettings(licenseKey);
|
|
594
|
+
sdkSettings.downloadResources = true;
|
|
595
|
+
|
|
596
|
+
// v8000
|
|
597
|
+
const sdkSettings = { licenseKey, downloadResources: true };
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
#### Modular scanning settings
|
|
601
|
+
|
|
602
|
+
Flat v7 settings map to module settings in v8000:
|
|
603
|
+
|
|
604
|
+
| v7 | v8000 |
|
|
605
|
+
|---------------------------------------------------|-------------------------------------------------------|
|
|
606
|
+
| `blurDetectionLevel` | `documentCaptureModule.blurSensitivityLevel` |
|
|
607
|
+
| `glareDetectionLevel` | `documentCaptureModule.glareSensitivityLevel` |
|
|
608
|
+
| `tiltDetectionLevel` | `documentCaptureModule.tiltSensitivityLevel` |
|
|
609
|
+
| `skipImagesWithBlur` | `documentCaptureModule.imageWithBlurRejected` |
|
|
610
|
+
| `skipImagesWithGlare` | `documentCaptureModule.imageWithGlareRejected` |
|
|
611
|
+
| `croppedImageSettings.returnDocumentImage` | `documentCaptureModule.documentImageReturnEnabled` |
|
|
612
|
+
| `croppedImageSettings.returnFaceImage` | `documentCaptureModule.faceImageExtractionEnabled` |
|
|
613
|
+
| `croppedImageSettings.returnSignatureImage` | `vizModule.signatureImageExtractionEnabled` |
|
|
614
|
+
| `croppedImageSettings.dotsPerInch` | `documentCaptureModule.dotsPerInch` |
|
|
615
|
+
| `scanCroppedDocumentImage` | `documentCaptureModule.inputImageCropped` |
|
|
616
|
+
| `enableCharacterValidation` | `vizModule.characterValidationEnabled` |
|
|
617
|
+
| `scanPassportDataPageOnly` | `documentCaptureModule.passportDataPageScanOnly` |
|
|
618
|
+
| `anonymizationMode` | Use `RedactionSettings` / `RedactionSettingsResolver` |
|
|
619
|
+
| `recognitionModeFilter` / `enableBarcodeScanOnly` | Enable/disable modules explicitly |
|
|
620
|
+
|
|
621
|
+
Removed types: `CroppedImageSettings`, `AnonymizationMode`, `DetectionLevel`, `RecognitionMode`.
|
|
427
622
|
|
|
428
|
-
|
|
623
|
+
#### Method call style
|
|
624
|
+
|
|
625
|
+
```typescript
|
|
626
|
+
// v7 — positional arguments
|
|
627
|
+
await performScan(sdkSettings, sessionSettings, uxSettings, classFilter);
|
|
628
|
+
|
|
629
|
+
// v8000 — recommended object style
|
|
630
|
+
await performScan({ sdkSettings, sessionSettings, scanningUxSettings: uxSettings, classFilter });
|
|
631
|
+
```
|
|
632
|
+
|
|
633
|
+
```typescript
|
|
634
|
+
// v8000 unload API
|
|
635
|
+
await unloadBlinkIdSdk({ deleteCachedResources: false });
|
|
636
|
+
```
|
|
429
637
|
|
|
430
|
-
|
|
638
|
+
BlinkID Android SDK v8000 requires Kotlin v2.2.21+. See [Android setup](#android-setup) for more details.
|
|
431
639
|
|
|
432
|
-
|
|
640
|
+
For the complete migration guide with all setting mappings, see [Migrate to v8000](https://docs.microblink.com/blinkid/migration-v8000).
|
|
433
641
|
|
|
434
642
|
## <a name="additional-information-and-support"></a> Additional information and Support
|
|
435
|
-
For any additional questions and information, feel free to contact us [here](https://help.microblink.com), or directly to the Support team
|
|
643
|
+
For any additional questions and information, feel free to contact us [here](https://help.microblink.com), or directly to the Support team at support@microblink.com.
|