React Native
Faceplugin ID Document Recognition React Native SDK. On-premise OCR, MRZ, and authenticity. document-reader-sdk plugin, not Expo Go.
Fully on-premise ID Document Recognition SDK for React Native. Package: document-reader-sdk. Not Expo Go. Physical arm64 device.
Android output is normalized to the iOS-shaped JSON. Parse it with Document result JSON.
Code
How to Run
Place native runtimes
Android
documentreadersdk.aar
example/android/libdocsdk/
node_modules/document-reader-sdk/android/libs/
iOS
docsdk.framework
ios/Frameworks/
node_modules/document-reader-sdk/ios/Frameworks/
Android Google Drive: documentreadersdk.aar
iOS Google Drive: docsdk.framework
Keep demo ids: Android com.faceplugin.documentreader, iOS com.faceplugin.documentreader.app. Android: minSdkVersion 24 and abiFilters 'arm64-v8a'.
License
Licenses are offline. Install from GitHub, not npm:
Rebuild the native app after install — a JS reload is not enough.
Integrate into your own app
Permissions: CAMERA + photo library (READ_MEDIA_IMAGES / READ_EXTERNAL_STORAGE maxSdk 32; NSCameraUsageDescription / NSPhotoLibraryUsageDescription).
APIs
Status codes: 0 Success, 1 Invalid license, 2 Expired, 3 Not activated, 4 Init failed.
setActivation: This API is used to activate the SDK
init: This API is used to initialize the SDK
getMachineCode: This API is used to retrieve the machine code
locateDocument: This API is used to find document corners on a preview frame
No OCR. Overlay only.
recognize: This API is used to run FullProcess
Authenticity: true / false or 'normal' / 'none'.
documentRecognition: This API is used to run OCR / MRZ / barcode / image quality only
documentLiveness: This API is used to run authenticity / security only
Also: getLicenseStatus, startNewSession, deinit.
Request a License & Support · Contact us
FAQ
Package? document-reader-sdk. Yarn 3; not Expo Go.
Same JSON as iOS? Yes — the plugin normalizes Android output. See Document result JSON.
Related documentation
Last updated