React Native library for Overlay Capture Architecture (OCA).
For now, you can only run the library locally. You need to clone the repository and do the installation. After, you can pack the library with the prepare command line.
npm install
npm run prepare
The code for the example is under the example/ directory. If you want to play with the oca components you can run the example project. Check example/ directory README for installation instructions.
The library is principally an adaptation of oca.js-form-core and oca.js-form-html to be easily use in react native. For that, the library oca-react-native expose OcaCredential, OcaForm, createOcaStructure and getAttributes.
<OcaCredential
oca,
attributeValues,
pageNumber,
onError,
language,
width,
height
/>
<OcaForm
oca,
language,
attributeValues,
stylingOptions,
hideShowOptions,
maxNumberOfAttributes
/>
createOcaStructure(oca): Promise<Structure | undefined>
getAttributes(attributesValues, language, structure): AttributesValues | object{name: string | undefined, ..., value: string | undefined}
Distribué sous Licence Libre du Québec – Réciprocité (LiLiQ-R). Voir LICENCE pour plus d'informations.