Skip to main content

Extractor

This extractor is built on top of BaseExtractor, and exposes as react component with the following props:

PropertyTypeRequiredDefaultDescription
onResult(data: Transient) => voidtrueCallback function called when data extraction ends.
uristring | undefinedfalseundefinedFile path
patternsRegExp | RegExp[]falseundefinedRegular expressions used to find matches
fromIntentbooleanfalsefalseDetermine if application should try get uri from intent provider (Android only)
titlestring | undefinedfalseThis file is protectedTitle displayed on password modal when file is encrypted
placeholderstring | undefinedfalsePasswordInput text placeholder displayed on password modal when file is encrypted
submitstring | undefinedfalseOpenText of submit button displayed on password modal when file is encrypted
cancelstring | undefinedfalseCancelText of cancel button displayed on password modal when file is encrypted

💡 You can see a full implementation at Playground.