Extractor
This extractor is built on top of BaseExtractor, and exposes as react component with the following props:
Property | Type | Required | Default | Description |
---|---|---|---|---|
onResult | (data: Transient) => void | true | Callback function called when data extraction ends. | |
uri | string | undefined | false | undefined | File path |
patterns | RegExp | RegExp[] | false | undefined | Regular expressions used to find matches |
fromIntent | boolean | false | false | Determine if application should try get uri from intent provider (Android only) |
title | string | undefined | false | This file is protected | Title displayed on password modal when file is encrypted |
placeholder | string | undefined | false | Password | Input text placeholder displayed on password modal when file is encrypted |
submit | string | undefined | false | Open | Text of submit button displayed on password modal when file is encrypted |
cancel | string | undefined | false | Cancel | Text of cancel button displayed on password modal when file is encrypted |
💡 You can see a full implementation at Playground.