DocumentDetector
The @caf.io/react-native-document-detector library is responsible for capturing identity documents, such as the ID (Brazilian General Registry - RG), Drivers License (CNH), National Foreigner Registry
Requirements
The libraries are compatible only with React Native versions that are 0.66.5
or later.
Android
iOS
Installation
Android
Inside the android folder in app/build.gradle
add the following code:
iOS
In the Podfile in the iOS folder, add this following sources:
After editing your Podfile, save it and install the SDK along with its dependencies by running the following command:
Usage
Methods
startDocumentDetector
This method inicialize the document detector.
Params
Hooks
useDocumentDetector
This hook provides the responses of method startDocumentDetector
and make the settings for document detector.
Params
Responses
Types
DocumentDetectorResult
DocumentDetectorCapture
DocumentDetectorError
DocumentDetectorResponse
DocumentDetectorSettings
DocumentDetectorUploadSettings
DocumentDetectorMessageSettings
DocumentDetectorSecuritySettings
Enums
Document
FileFormat
Stage
Error
Last updated