@microblink/blinkid-react-native 7.7.0 → 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.
Files changed (221) hide show
  1. package/BlinkidReactNative.podspec +2 -1
  2. package/README.md +490 -282
  3. package/android/build.gradle +56 -4
  4. package/android/gradle.properties +3 -4
  5. package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkIdDeserializationUtilities.kt +312 -249
  6. package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkIdSerializationUtilities.kt +109 -31
  7. package/android/src/main/java/com/microblink/blinkid/reactnative/BlinkidReactNativeModule.kt +39 -31
  8. package/ios/BlinkidReactNative.mm +42 -52
  9. package/ios/BlinkidReactNativeModule.swift +92 -57
  10. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/BlinkID +0 -0
  11. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/BlinkID-Swift.h +7535 -2758
  12. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/BlinkID.h +2 -1
  13. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Info.plist +0 -0
  14. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.abi.json +17584 -4445
  15. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.private.swiftinterface +352 -122
  16. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  17. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios.swiftinterface +352 -122
  18. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/_CodeSignature/CodeResources +17 -28
  19. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/conan.xcconfig +3 -3
  20. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/BlinkID +0 -0
  21. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/BlinkID-Swift.h +42778 -33224
  22. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/BlinkID.h +2 -1
  23. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Info.plist +0 -0
  24. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.abi.json +17584 -4445
  25. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +352 -122
  26. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  27. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/arm64-apple-ios-simulator.swiftinterface +352 -122
  28. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.abi.json +17584 -4445
  29. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +352 -122
  30. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  31. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Modules/BlinkID.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +352 -122
  32. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/_CodeSignature/CodeResources +27 -38
  33. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/conan.xcconfig +3 -3
  34. package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeDirectory +0 -0
  35. package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeResources +276 -276
  36. package/ios/Frameworks/BlinkIDUX.xcframework/_CodeSignature/CodeSignature +0 -0
  37. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX +0 -0
  38. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Assets.car +0 -0
  39. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Info.plist +0 -0
  40. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ak.lproj/Localizable.strings +0 -0
  41. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/am.lproj/Localizable.strings +0 -0
  42. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ar.lproj/Localizable.strings +0 -0
  43. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/bn.lproj/Localizable.strings +0 -0
  44. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/cs.lproj/Localizable.strings +0 -0
  45. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/da.lproj/Localizable.strings +0 -0
  46. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/de.lproj/Localizable.strings +0 -0
  47. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/el.lproj/Localizable.strings +0 -0
  48. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en-GB.lproj/Localizable.strings +0 -0
  49. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en.lproj/Localizable.strings +0 -0
  50. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es-MX.lproj/Localizable.strings +0 -0
  51. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es.lproj/Localizable.strings +0 -0
  52. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fa.lproj/Localizable.strings +0 -0
  53. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fi.lproj/Localizable.strings +0 -0
  54. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fil.lproj/Localizable.strings +0 -0
  55. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr-CA.lproj/Localizable.strings +0 -0
  56. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr.lproj/Localizable.strings +0 -0
  57. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ha.lproj/Localizable.strings +0 -0
  58. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/he.lproj/Localizable.strings +0 -0
  59. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hi.lproj/Localizable.strings +0 -0
  60. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hr.lproj/Localizable.strings +0 -0
  61. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hu.lproj/Localizable.strings +0 -0
  62. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/id.lproj/Localizable.strings +0 -0
  63. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/is.lproj/Localizable.strings +0 -0
  64. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/it.lproj/Localizable.strings +0 -0
  65. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ja.lproj/Localizable.strings +0 -0
  66. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ka-GE.lproj/Localizable.strings +0 -0
  67. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/kk.lproj/Localizable.strings +0 -0
  68. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/km-KH.lproj/Localizable.strings +0 -0
  69. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ko.lproj/Localizable.strings +0 -0
  70. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/lv.lproj/Localizable.strings +0 -0
  71. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ms.lproj/Localizable.strings +0 -0
  72. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nb.lproj/Localizable.strings +0 -0
  73. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ne.lproj/Localizable.strings +0 -0
  74. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nl.lproj/Localizable.strings +0 -0
  75. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pl.lproj/Localizable.strings +0 -0
  76. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ps-AF.lproj/Localizable.strings +0 -0
  77. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt-BR.lproj/Localizable.strings +0 -0
  78. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt.lproj/Localizable.strings +0 -0
  79. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ro.lproj/Localizable.strings +0 -0
  80. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ru.lproj/Localizable.strings +0 -0
  81. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/si.lproj/Localizable.strings +0 -0
  82. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sk.lproj/Localizable.strings +0 -0
  83. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sl.lproj/Localizable.strings +0 -0
  84. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sr.lproj/Localizable.strings +0 -0
  85. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sv.lproj/Localizable.strings +0 -0
  86. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sw.lproj/Localizable.strings +0 -0
  87. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/th.lproj/Localizable.strings +0 -0
  88. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/tr.lproj/Localizable.strings +0 -0
  89. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uk.lproj/Localizable.strings +0 -0
  90. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ur.lproj/Localizable.strings +0 -0
  91. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uz.lproj/Localizable.strings +0 -0
  92. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/vi.lproj/Localizable.strings +0 -0
  93. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/yo.lproj/Localizable.strings +0 -0
  94. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hans.lproj/Localizable.strings +0 -0
  95. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hant.lproj/Localizable.strings +0 -0
  96. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Info.plist +0 -0
  97. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.abi.json +2551 -1166
  98. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.package.swiftinterface +60 -24
  99. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.private.swiftinterface +60 -24
  100. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  101. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios.swiftinterface +60 -24
  102. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX +0 -0
  103. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Assets.car +0 -0
  104. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/Info.plist +0 -0
  105. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeDirectory +0 -0
  106. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/_CodeSignature/CodeResources +114 -114
  107. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ak.lproj/Localizable.strings +0 -0
  108. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/am.lproj/Localizable.strings +0 -0
  109. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ar.lproj/Localizable.strings +0 -0
  110. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/bn.lproj/Localizable.strings +0 -0
  111. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/cs.lproj/Localizable.strings +0 -0
  112. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/da.lproj/Localizable.strings +0 -0
  113. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/de.lproj/Localizable.strings +0 -0
  114. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/el.lproj/Localizable.strings +0 -0
  115. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en-GB.lproj/Localizable.strings +0 -0
  116. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/en.lproj/Localizable.strings +0 -0
  117. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es-MX.lproj/Localizable.strings +0 -0
  118. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/es.lproj/Localizable.strings +0 -0
  119. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fa.lproj/Localizable.strings +0 -0
  120. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fi.lproj/Localizable.strings +0 -0
  121. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fil.lproj/Localizable.strings +0 -0
  122. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr-CA.lproj/Localizable.strings +0 -0
  123. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/fr.lproj/Localizable.strings +0 -0
  124. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ha.lproj/Localizable.strings +0 -0
  125. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/he.lproj/Localizable.strings +0 -0
  126. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hi.lproj/Localizable.strings +0 -0
  127. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hr.lproj/Localizable.strings +0 -0
  128. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/hu.lproj/Localizable.strings +0 -0
  129. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/id.lproj/Localizable.strings +0 -0
  130. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/is.lproj/Localizable.strings +0 -0
  131. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/it.lproj/Localizable.strings +0 -0
  132. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ja.lproj/Localizable.strings +0 -0
  133. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ka-GE.lproj/Localizable.strings +0 -0
  134. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/kk.lproj/Localizable.strings +0 -0
  135. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/km-KH.lproj/Localizable.strings +0 -0
  136. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ko.lproj/Localizable.strings +0 -0
  137. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/lv.lproj/Localizable.strings +0 -0
  138. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ms.lproj/Localizable.strings +0 -0
  139. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nb.lproj/Localizable.strings +0 -0
  140. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ne.lproj/Localizable.strings +0 -0
  141. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/nl.lproj/Localizable.strings +0 -0
  142. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pl.lproj/Localizable.strings +0 -0
  143. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ps-AF.lproj/Localizable.strings +0 -0
  144. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt-BR.lproj/Localizable.strings +0 -0
  145. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/pt.lproj/Localizable.strings +0 -0
  146. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ro.lproj/Localizable.strings +0 -0
  147. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ru.lproj/Localizable.strings +0 -0
  148. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/si.lproj/Localizable.strings +0 -0
  149. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sk.lproj/Localizable.strings +0 -0
  150. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sl.lproj/Localizable.strings +0 -0
  151. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sr.lproj/Localizable.strings +0 -0
  152. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sv.lproj/Localizable.strings +0 -0
  153. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/sw.lproj/Localizable.strings +0 -0
  154. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/th.lproj/Localizable.strings +0 -0
  155. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/tr.lproj/Localizable.strings +0 -0
  156. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uk.lproj/Localizable.strings +0 -0
  157. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/ur.lproj/Localizable.strings +0 -0
  158. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/uz.lproj/Localizable.strings +0 -0
  159. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/vi.lproj/Localizable.strings +0 -0
  160. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/yo.lproj/Localizable.strings +0 -0
  161. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hans.lproj/Localizable.strings +0 -0
  162. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/BlinkIDUX_BlinkIDUX.bundle/zh-Hant.lproj/Localizable.strings +0 -0
  163. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Info.plist +0 -0
  164. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.abi.json +2551 -1166
  165. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.package.swiftinterface +60 -24
  166. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +60 -24
  167. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  168. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/arm64-apple-ios-simulator.swiftinterface +60 -24
  169. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.abi.json +2551 -1166
  170. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.package.swiftinterface +60 -24
  171. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +60 -24
  172. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  173. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/Modules/BlinkIDUX.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +60 -24
  174. package/ios/Frameworks/BlinkIDUX.xcframework/ios-arm64_x86_64-simulator/BlinkIDUX.framework/_CodeSignature/CodeResources +1 -1
  175. package/ios/Serialization/BlinkIdDeserializationUtils.swift +492 -0
  176. package/ios/{BlinkIdSerializationUtilities.swift → Serialization/BlinkIdSerializationUtils.swift} +246 -256
  177. package/lib/module/NativeBlinkidReactNative.js.map +1 -1
  178. package/lib/module/blinkIdResult.js +1 -822
  179. package/lib/module/blinkIdResult.js.map +1 -1
  180. package/lib/module/blinkIdSettings.js +1 -496
  181. package/lib/module/blinkIdSettings.js.map +1 -1
  182. package/lib/module/index.js +81 -17
  183. package/lib/module/index.js.map +1 -1
  184. package/lib/module/types.js +694 -3406
  185. package/lib/module/types.js.map +1 -1
  186. package/lib/typescript/src/NativeBlinkidReactNative.d.ts +26 -5
  187. package/lib/typescript/src/NativeBlinkidReactNative.d.ts.map +1 -1
  188. package/lib/typescript/src/blinkIdResult.d.ts +12 -20
  189. package/lib/typescript/src/blinkIdResult.d.ts.map +1 -1
  190. package/lib/typescript/src/blinkIdSettings.d.ts +36 -297
  191. package/lib/typescript/src/blinkIdSettings.d.ts.map +1 -1
  192. package/lib/typescript/src/index.d.ts +38 -10
  193. package/lib/typescript/src/index.d.ts.map +1 -1
  194. package/lib/typescript/src/types.d.ts +960 -1182
  195. package/lib/typescript/src/types.d.ts.map +1 -1
  196. package/package.json +5 -4
  197. package/src/NativeBlinkidReactNative.ts +28 -5
  198. package/src/blinkIdResult.ts +13 -466
  199. package/src/blinkIdSettings.ts +53 -373
  200. package/src/index.tsx +208 -35
  201. package/src/types.ts +1116 -1442
  202. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  203. package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
  204. package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
  205. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  206. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  207. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  208. package/android/.gradle/8.9/gc.properties +0 -0
  209. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  210. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  211. package/android/.gradle/vcs-1/gc.properties +0 -0
  212. package/android/.project +0 -28
  213. package/ios/BlinkIdDeserializationUtilities.swift +0 -374
  214. package/ios/Frameworks/BlinkID.xcframework/ios-arm64/BlinkID.framework/Headers/MBSampleBufferWrapper.h +0 -28
  215. package/ios/Frameworks/BlinkID.xcframework/ios-arm64_x86_64-simulator/BlinkID.framework/Headers/MBSampleBufferWrapper.h +0 -28
  216. package/lib/module/blinkIdUtilities.js +0 -21
  217. package/lib/module/blinkIdUtilities.js.map +0 -1
  218. package/lib/typescript/src/blinkIdUtilities.d.ts +0 -8
  219. package/lib/typescript/src/blinkIdUtilities.d.ts.map +0 -1
  220. package/src/android/.project +0 -28
  221. 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/blinkid/blinkid-android/images/logo-microblink.png" alt="Microblink" title="Microblink">
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 on the React Native cross-platform.
8
- It offers powerful capabilities for capturing and analyzing a wide range of identification documents. The Flutter plugin consists of BlinkID, which serves as the core module, and the BlinkIDUX package that provides a complete, ready-to-use solution with a user-friendly interface.
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/BlinkID/blinkid-ios) or [Android](https://github.com/BlinkID/blinkid-android)).**
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 Settings](#blinkid-settings)
25
- - [BlinkID Results](#blinkid-results)
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. A free trial license key can be requested after registering at the [Microblink Developer Hub](https://developer.microblink.com/).
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
- - BlinkID React Native was built and tested with [React Native v0.82.1](https://github.com/facebook/react-native/releases/tag/v0.82.1)
35
- - 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.
36
- - For additional help with React-Native setup, view the official documentation [here](https://reactnative.dev/docs/set-up-your-environment).
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
- - For more detailed information about the BlinkID Android and iOS requirements, view the native SDK documentation here ([Android](https://github.com/BlinkID/blinkid-android?tab=readme-ov-file#-device-requirements) & [iOS](https://github.com/BlinkID/blinkid-ios?tab=readme-ov-file#requirements)).
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, used and shows how to obtain the scanned results.
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. The **default implementation** with the default BlinkID UX scanning experience.
51
- 2. **Multiside DirectAPI scanning** - extracting the document information from multiple static images (from the gallery).
52
- 3. **Singleside DirectAPI scanning** - extracting the document information from a single static images (from the gallery).
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
- To obtain and run the sample application, follow the steps below:
55
- Make sure you have Node & Watchman installed before running the sample application:
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 Watcman
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/BlinkID/blinkid-react-native.git
88
+ git clone https://github.com/microblink/blinkid-react-native.git
68
89
  ```
69
- 2. Position to the obtained BlinkID folder and run the `initBlinkIdReactNativeSample.sh` script:
90
+ 2. Position to the obtained `blinkid-react-native` folder
70
91
  ```bash
71
- cd blinkid-react-native && ./initBlinkIdReactNativeSample.sh
92
+ cd blinkid-react-native
72
93
  ```
73
- 3. After the script finishes running, position to the `BlinkIdSample` folder.
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
- **Running the sample application on Android**
102
+ Running the sample application on Android
76
103
 
77
- For running the sample application on Android, execute the following command:
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
- **Note:** the plugin can be run directly via Android Studio as well:
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
- **Running the sample application on iOS**
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 "React Native version"
157
+ npx @react-native-community/cli init YourAppName --package-name YourPackageName --title YourAppTitle --version "0.82.0"
106
158
  ```
107
159
 
108
- 3. Install the `@microblink/blinkid-react-native` dependency:
160
+ 2. Install the `@microblink/blinkid-react-native` dependency:
109
161
  ```bash
110
- npm install --save @microblink/blinkid-react-native
162
+ npm install --save @microblink/blinkid-react-native@8000.0.0
111
163
  ```
112
164
 
113
- 4. Android: the BlinkID library is available on Maven Central repository.
165
+ 3. Complete the platform-specific setup below.
114
166
 
115
- In your project root, add `mavenCentral()` repository to the repositories list, if not already present:
116
- ```bash
117
- repositories {
118
- // ... other repositories
119
- mavenCentral()
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
- 5. iOS: position to the `ios` folder and run `pod install` to install the iOS dependency.
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
- 1. After the dependency has been added to the project, first add the necessary import:
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
- 2. Add the license key, for each platform, obtained from the [Developer Hub portal](https://developer.microblink.com/):
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
- const licenseKey = Platform.select({
136
- ios: 'your-ios-key',
137
- android:
138
- 'your-android-key',
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
- * Set the BlinkID SDK settings
147
- * Add the license key here from the code above
148
- */
149
- const sdkSettings = new BlinkIdSdkSettings(licenseKey);
150
- sdkSettings.downloadResources = true;
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
- * Call the `performDirectApiScan` method,
289
- * where the SDK and session settings need to be passed,
290
- * along with the Base64 images.
291
- */
292
- await performDirectApiScan(
293
- sdkSettings,
294
- sessionSettings,
295
- firstImageBase64,
296
- secondImageBase64
297
- )
298
- .then((result: BlinkIdScanningResult) => {
299
- //handle the results here.
300
- console.log(result.firstName?.value);
301
- })
302
- .catch((error) => {
303
- // handle any errors here.
304
- console.log(`Error during scan: ${error}`);
305
- });
306
- ```
307
- **Note:**
308
- - The whole integration process can be found in the sample app `App.tsx` file [here](https://github.com/BlinkID/blinkid-react-native/blob/master/sample_files/App.tsx).
309
- - The settings and the results that can be used with the BlinkID plugin can be found in the paragraphs below, but also in the comments of each BlinkID TS file.
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/BlinkID/blinkid-react-native/tree/master/BlinkID/src), while platform-specific implementation is located in the `android` and `ios` folders.
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 the two main methods of scanning: `performScan` and `performDirectApiScan`.
453
+ Currently, the BlinkID plugin contains two main scanning methods: `performScan` and `performDirectApiScan`.
316
454
 
317
455
  **The `performScan` method**
318
456
 
319
- The `performScan` method launches the BlinkID scanning process with the default UX properties.\
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
- **BlinkID Session Settings** - `BlinkIdSessionSettings`: the class that contains various settings for the scanning session. It contains the settings for the `ScanningMode` and `BlinkIdScanningSettings`, which define various parameters that control the scanning process.
459
+ Recommended call style single settings object:
329
460
 
330
- **BlinkID UI Settings** - `BlinkIdUiSettings`: the class that allows customization of various aspects of the UI used during the scanning process.
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
- The optional **ClassFilter** class - `ClassFilter`: the class which controls which documents will be accepted or reject for information extraction during the scanning session.
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
- - The implementation of the `performScan` method can be viewed here in the [index.tsx](https://github.com/BlinkID/blinkid-react-native/blob/master/BlinkID/src/index.tsx) file.
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
- The `performDirectApiScan` method launches the BlinkID scanning process intended for information extraction from static images.\
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
- **BlinkID Session Settings** - `BlinkIdSessionSettings`: the class that contains various settings for the scanning session. It contains the settings for the `ScanningMode` and `BlinkIdScanningSettings`, which define various parameters that control the scanning process.
348
-
349
- The first image Base64 string - `String`: image that represents one side of the document. If the document contains two sides and the `ScanningMode` is set to `automatic`, this should contain the image of the front side of the document. In case the `ScanningMode` is set to `single`, it can be either the front or the back side of the document. If the document contains only one side (for example, various passports), the SDK will automatically detect it, and will not look for the other side.
350
-
351
- The optional second image Base64 string - `String`: needed if the information from back side of the document is required and the `ScanningMode` is set to `automatic`.
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
- - The implementation of the `performDirectApiScanning` method can be viewed here in the [index.tsx](https://github.com/BlinkID/blinkid-react-native/blob/master/BlinkID/src/index.tsx) file.
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 creates or retrieves the instance of the BlinkID SDK It initializes and loads the BlinkID SDK if it is not already loaded.
500
+ **The `loadBlinkIdSdk` method**
361
501
 
362
- It can be called in advance to **preload** the SDK before starting a scanning session. Doing so reduces loading time for the `performScan` and `performDirectApiScan` methods, since all resources will already be available and the license verified.
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
- If the method is not called beforehand, it will still be automatically invoked on the native platform channels when a scan starts. However, the initial scan may take longer due to resource loading and license checks.
504
+ ```typescript
505
+ await loadBlinkIdSdk({ sdkSettings: { licenseKey, downloadResources: true } });
506
+ ```
365
507
 
366
- It takes the following parameter: [BlinkIdSdkSettings](#blinkid-settings), which is explained in more details below.
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
- The `unloadBlinkIdSdk` platform method terminates the BlinkID SDK and releases all associated resources. It safely shuts down the SDK instance and frees any allocated memory.
371
- After calling this method, you must reinitialize the SDK (by calling `loadBlinkIdSdk` or any of the scanning methods) before using it again.
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
- If set to `true` (`false` is default), the method performs a **complete cleanup**, including deletion of all downloaded and cached SDK resources from the device.
518
+ Set `deleteCachedResources` to `true` to also delete downloaded and cached SDK resources from the device.
374
519
 
375
- This method is automatically called after each successful scan session.
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
- 2. [BlinkID session settings](https://github.com/BlinkID/blinkid-react-native/blob/feature/blinkid-v7/BlinkID/src/blinkIdSettings.ts#L92) - `BlinkIdSessionSettings`\
383
- These settings represent the configuration settings for a scanning session.\
384
- This class holds the settings related to the resources initialization, scanning mode, and specific scanning configurations that define how the scanning session should behave.
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
- 3. [BlinkID scanning settings](https://github.com/BlinkID/blinkid-react-native/blob/master/BlinkID/src/blinkIdSettings.ts#L141) - `BlinkIdScanningSettings`\
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
- 4. [BlinkID UI settings](https://github.com/BlinkID/blinkid-react-native/blob/master/BlinkID/src/blinkIdSettings.ts#L468) - `BlinkIdUiSettings`\
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
- 5. [Cropped image settings](https://github.com/BlinkID/blinkid-react-native/blob/master/BlinkID/src/blinkIdSettings.ts#L468) - `CroppedImageSettings`\
394
- These settings represent the image cropping settings.
548
+ Key result members:
395
549
 
396
- **Additional notes:**
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
- - The [blinkIdSettings.ts](https://github.com/BlinkID/blinkid-react-native/blob/master/BlinkID/src/blinkIdSettings.ts) and [types.ts](https://github.com/BlinkID/blinkid-react-native/blob/master/BlinkID/src/types.ts) files contains all the settings that can be modified and explains what each setting does in more detail.
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
- - The native Kotlin & Swift implementation of all BlinkID settings can be found here for [Android](https://github.com/BlinkID/blinkid-react-native/blob/master/BlinkID/android/src/main/java/com/blinkidreactnative/BlinkIdDeserializationUtilities.kt) & [iOS](https://github.com/BlinkID/blinkid-react-native/blob/master/BlinkID/ios/BlinkIdDeserializationUtilities.swift) in the BlinkID deserialization utilities.
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
- ### <a name="blinkid-result"></a> BlinkID Results
565
+ ## <a name="whats-new-in-v8000"></a> What's new in v8000
405
566
 
406
- The result of the scanning process is stored in the `BlinkIdScanningResult`. It contains the results of scanning a document, including the extracted data and images from the document.
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
- Along with the information scanned from the document, the BlinkID also provides additional details that was obtained during the scanning process:
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
- 1. **Recognition mode**- `RecognitionMode`\
411
- Scanning mode used to scan the current document.
576
+ Other notable changes:
412
577
 
413
- 2. **Document class info** - `DocumentClassInfo`\
414
- The document class information.
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
- 3. **Data match informatoin** - `DataMatchResult`\
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
- 4. **Singleside scanning result** - `SingleSideScanningResult`\
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
- 5. **Detailed cropped image result** - `DetailedCroppedImageResult`\
424
- Represents the result of the image crop transformation with additional details.
589
+ #### Settings are plain objects
425
590
 
426
- **Additional notes:**
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
- - The [blinkIdResult.ts](https://github.com/BlinkID/blinkid-react-native/blob/master/BlinkID/src/blinkIdResult.ts) and [types.ts](https://github.com/BlinkID/blinkid-react-native/blob/master/BlinkID/src/types.ts) files contain all the results after the scanning process finishes.
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
- - The native documentation for the above mentioned results can be found here for [Android](https://blinkid.github.io/blinkid-android/blinkid-core/com.microblink.blinkid.core.result/index.html) & [iOS](https://blinkid.github.io/blinkid-swift-package/documentation/blinkid/blinkidscanningresult).
638
+ BlinkID Android SDK v8000 requires Kotlin v2.2.21+. See [Android setup](#android-setup) for more details.
431
639
 
432
- - The native Kotlin & Swift implementation of all BlinkID settings can be found here for [Android](https://github.com/BlinkID/blinkid-react-native/blob/master/BlinkID/android/src/main/java/com/blinkidreactnative/BlinkIdSerializationUtilities.kt) & [iOS](https://github.com/BlinkID/blinkid-react-native/blob/master/BlinkID/ios/BlinkIdSerializationUtilities.swift) in the BlinkID deserialization utilities.
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 via mail support@microblink.com.
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.