API Reference
This page details the API exposed by expo-document-scanner.
scanDocument(options?)
The primary function to trigger the native document scanner.
Parameters
options(optional): An object to configure the scanning session.
ScanOptions
Returns
Returns a Promise that resolves to a ScanResult object.
ScanResult
A discriminated union based on the status property.
Success Result
Cancel Result
Error Result
Types
You can import these types directly from the package if you are using TypeScript: