1.0.0 • Published 2 years ago

@oiti/documentoscopy-react-native v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Sobre

Repositório responsável pelo pacote React Native da Oiti, com ele é possível instalar e usar os produtos disponíveis em aplicativos híbridos.

Instalação

Usando NPM:

npm install @oiti/documentoscopy-react-native

ou usando YARN

yarn add @oiti/documentoscopy-react-native

iOS Configuração

Adicionar o Pod do FaceCaptach no seu Podfile

pod 'FaceCaptcha', '~> 2.1.4', :source => 'https://github.com/oititec/liveness-ios-specs.git'

Depois entre na pasta iOS e execute o comando

pod install

Uso no Javascript

Primeiro devemos chamar a função desejada da biblioteca '@oiti/documentoscopy-react-native'

import { FUNÇÕES DESEJADAS } from '@oiti/documentoscopy-react-native';

Funções

Funções

AppKey: gerada na etapa 2 da documentação CertifaceID

FunçãoParâmetrosRetorno
startDocumentoscopy("APP KEY");AppKeyRESULT_OK, RESULT_CANCELED
resultDocumentoscopy("APP KEY")produto: "facecaptcha", "certifaceID", "analiseDocumento", AppKeyJSON

Exemplo de uso

Após efetuar a importação da biblioteca, deve ser aplicada a app Key gerada dentro da função startDocumentoscopy("APP KEY"), no exemplo abaixo chamamos a função quando clicamos no botão "Documentoscopia"

export default function App() {
  const [result, setResult] = React.useState<any | undefined>();
  const appKey = 'APP KEY';

  return (
    <View>
      <Button
        onPress={() => {
          startDocumentoscopy(appKey).then(setResult);
        }}
        title="Documentoscopia"
      />
    </View>
  );
}

Aplicativo de Exemplo

Para instalar as dependências do projeto de exemplo execute na pasta inicial do repositório o comando:

yarn

Android:

yarn example android

iOS:

yarn example ios

JSONStreamabort-controllerabsolute-pathacceptsacornacorn-jsxacorn-walkadd-streamagent-baseaggregate-errorajvanseransi-alignansi-escapesansi-fragmentsansi-regexansi-stylesanymatchappdirsjsargargparsearr-diffarr-flattenarr-unionarray-ifyarray-includesarray-unionarray-uniquearray.prototype.flatmaparray.prototype.maparrifyasapassign-symbolsast-typesastral-regexasyncasync-limiterasync-retryasynckitatobbabel-corebabel-jestbabel-plugin-dynamic-import-nodebabel-plugin-istanbulbabel-plugin-jest-hoistbabel-plugin-polyfill-corejs2babel-plugin-polyfill-corejs3babel-plugin-polyfill-regeneratorbabel-plugin-syntax-trailing-function-commasbabel-preset-current-node-syntaxbabel-preset-fbjsbabel-preset-jestbalanced-matchbasebase64-jsbefore-after-hookbig-integerblboxenbplist-creatorbplist-parserbrace-expansionbracesbrowserslistbserbufferbuffer-frombytescache-basecacheable-lookupcacheable-requestcall-bindcaller-callsitecaller-pathcallsitescamelcasecamelcase-keyscaniuse-litechalkchar-regexchardetci-infocjs-module-lexerclass-utilsclean-stackcli-boxescli-cursorcli-spinnerscli-widthcliuicloneclone-deepclone-responsecocollect-v8-coveragecollection-visitcolor-convertcolor-namecolorettecombined-streamcommand-existscommandercommondircompare-funccomponent-emittercompress-brotlicompressiblecompressionconcat-mapconcat-streamconfig-chainconfigstoreconnectconventional-changelogconventional-changelog-angularconventional-changelog-atomconventional-changelog-codemirrorconventional-changelog-conventionalcommitsconventional-changelog-coreconventional-changelog-emberconventional-changelog-eslintconventional-changelog-expressconventional-changelog-jqueryconventional-changelog-jshintconventional-changelog-preset-loaderconventional-changelog-writerconventional-commits-filterconventional-commits-parserconventional-recommended-bumpconvert-source-mapcopy-descriptorcore-js-compatcore-util-iscosmiconfigcosmiconfig-typescript-loadercreate-requirecross-spawncrypto-random-stringcsstypedargsdata-uri-to-bufferdateformatdayjsdebugdecamelizedecamelize-keysdecode-uri-componentdecompress-responsededentdeep-extenddeep-isdeepmergedefaultsdefer-to-connectdefine-lazy-propdefine-propertiesdefine-propertydegeneratordeldelayed-streamdenodeifydepddeprecated-react-native-prop-typesdeprecationdestroydetect-newlinediffdiff-sequencesdir-globdoctrinedot-propeastasianwidthee-firstelectron-to-chromiumemitteryemoji-regexencodeurlend-of-streamenvinfoerror-exerror-stack-parsererrorhandleres-abstractes-array-method-boxes-properlyes-get-iteratores-shim-unscopableses-to-primitiveescaladeescape-goatescape-htmlescape-string-regexpescodegeneslint-plugin-eslint-commentseslint-plugin-ft-floweslint-plugin-jesteslint-plugin-reacteslint-plugin-react-hookseslint-plugin-react-nativeeslint-plugin-react-native-globalseslint-scopeeslint-utilseslint-visitor-keysespreeesprimaesqueryesrecurseestraverseesutilsetagevent-target-shimexecaexitexpand-bracketsexpectextend-shallowexternal-editorextglobfast-deep-equalfast-difffast-globfast-json-stable-stringifyfast-levenshteinfastqfb-watchmanfetch-blobfiguresfile-entry-cachefile-uri-to-pathfill-rangefinalhandlerfind-cache-dirfind-upflat-cacheflattedflow-parserfor-inform-dataform-data-encoderformdata-polyfillfragment-cachefreshfs-extrafs.realpathfseventsftpfunction-bindfunction.prototype.namefunctional-red-black-treefunctions-have-namesgensyncget-caller-fileget-intrinsicget-package-typeget-pkg-repoget-streamget-symbol-descriptionget-uriget-valuegit-raw-commitsgit-remote-origin-urlgit-semver-tagsgit-upgit-url-parsegitconfiglocalglobglob-parentglobal-dirsglobalsglobbygotgraceful-fsgrapheme-splitterhandlebarshard-rejectionhashas-bigintshas-flaghas-property-descriptorshas-symbolshas-tostringtaghas-valuehas-valueshas-yarnhermes-enginehermes-estreehermes-parserhermes-profile-transformerhosted-git-infohtml-escaperhttp-cache-semanticshttp-errorshttp-proxy-agenthttp2-wrapperhttps-proxy-agenthuman-signalsiconv-liteieee754ignoreimage-sizeimport-freshimport-lazyimport-localimurmurhashindent-stringinflightinheritsiniinquirerinternal-slotinterpretinvariantipis-absoluteis-accessor-descriptoris-argumentsis-arrayishis-bigintis-boolean-objectis-bufferis-callableis-ciis-core-moduleis-data-descriptoris-date-objectis-descriptoris-directoryis-dockeris-extendableis-extglobis-fullwidth-code-pointis-generator-fnis-git-dirtyis-git-repositoryis-globis-installed-globallyis-interactiveis-mapis-negative-zerois-npmis-numberis-number-objectis-objis-path-cwdis-path-insideis-plain-objis-plain-objectis-regexis-relativeis-setis-shared-array-bufferis-sshis-streamis-stringis-symbolis-text-pathis-typedarrayis-unc-pathis-unicode-supportedis-weakrefis-windowsis-wslis-yarn-globalisarrayisexeisobjectistanbul-lib-coverageistanbul-lib-instrumentistanbul-lib-reportistanbul-lib-source-mapsistanbul-reportsiterate-iteratoriterate-valuejest-changed-filesjest-circusjest-clijest-configjest-diffjest-docblockjest-eachjest-environment-nodejest-get-typejest-haste-mapjest-leak-detectorjest-matcher-utilsjest-message-utiljest-mockjest-pnp-resolverjest-regex-utiljest-resolvejest-resolve-dependenciesjest-runnerjest-runtimejest-serializerjest-snapshotjest-utiljest-validatejest-watcherjest-workerjetifierjoijs-tokensjs-yamljsc-androidjscodeshiftjsescjson-bufferjson-parse-better-errorsjson-parse-even-better-errorsjson-schema-traversejson-stable-stringify-without-jsonifyjson-stringify-safejson5jsonfilejsonparsejsx-ast-utilskeyvkind-ofklawkleurlatest-versionlevenlevnlines-and-columnsload-json-filelocate-pathlodashlodash.debouncelodash.ismatchlodash.mergelodash.throttlelog-symbolslogkittyloose-envifylowercase-keyslru-cachemacos-releasemake-dirmake-errormakeerrormap-cachemap-objmap-visitmeowmerge-streammerge2metrometro-babel-transformermetro-cachemetro-cache-keymetro-configmetro-coremetro-hermes-compilermetro-inspector-proxymetro-minify-uglifymetro-react-native-babel-presetmetro-react-native-babel-transformermetro-resolvermetro-runtimemetro-source-mapmetro-symbolicatemetro-transform-pluginsmetro-transform-workermicromatchmimemime-dbmime-typesmimic-fnmimic-responsemin-indentminimatchminimistminimist-optionsmixin-deepmkdirpmodify-valuesmsmute-streamnanomatchnatural-comparenegotiatorneo-asyncnetmasknew-github-release-urlnice-trynocachenode-dirnode-domexceptionnode-fetchnode-int64node-releasesnode-stream-zipnormalize-package-datanormalize-pathnormalize-urlnpm-run-pathnullthrowsob1object-assignobject-copyobject-inspectobject-keysobject-visitobject.assignobject.entriesobject.fromentriesobject.hasownobject.pickobject.valueson-finishedon-headersonceonetimeopenoptionatororaos-nameos-tmpdirp-cancelablep-finallyp-limitp-locatep-mapp-trypac-proxy-agentpac-resolverpackage-jsonparent-moduleparse-jsonparse-pathparse-urlparseurlpascalcasepath-existspath-is-absolutepath-keypath-parsepath-typepicocolorspicomatchpifypiratespkg-dirplistposix-character-classesprelude-lsprettier-linter-helperspretty-formatprocess-nextick-argspromisepromise.allsettledpromptsprop-typesproto-listprotocolsproxy-agentproxy-from-envpumppunycodepupaqqsqueue-microtaskquick-lrurange-parserraw-bodyrcreact-devtools-corereact-isreact-native-codegenreact-native-gradle-pluginreact-refreshreact-shallow-rendererread-pkgread-pkg-upreadable-streamreadlinerecastrechoirredentregenerateregenerate-unicode-propertiesregenerator-runtimeregenerator-transformregex-notregexp.prototype.flagsregexppregexpu-coreregistry-auth-tokenregistry-urlregjsgenregjsparserrepeat-elementrepeat-stringrequire-directoryrequire-from-stringrequire-main-filenameresolveresolve-alpnresolve-cwdresolve-fromresolve-globalresolve-urlresolve.exportsresponselikerestore-cursorretretryreusifyrimrafrun-asyncrun-parallelrxjssafe-buffersafe-regexsafer-buffersaxschedulersemversemver-diffsendserialize-errorserve-staticset-blockingset-valuesetprototypeofshallow-cloneshebang-commandshebang-regexshell-quoteshelljsside-channelsignal-exitsimple-plistsisteransislashslice-ansismart-buffersnapdragonsnapdragon-nodesnapdragon-utilsockssocks-proxy-agentsource-mapsource-map-resolvesource-map-supportsource-map-urlspdx-correctspdx-exceptionsspdx-expression-parsespdx-license-idssplitsplit-stringsplit2sprintf-jsstack-utilsstackframestacktrace-parserstatic-extendstatusesstream-buffersstring-lengthstring-natural-comparestring-widthstring.prototype.matchallstring.prototype.trimendstring.prototype.trimstartstring_decoderstrip-ansistrip-bomstrip-eofstrip-final-newlinestrip-indentstrip-json-commentssudo-promptsupports-colorsupports-hyperlinkssupports-preserve-symlinks-flagtempterminal-linktest-excludetext-extensionstext-tablethroatthroughthrough2tmptmplto-fast-propertiesto-object-pathto-regexto-regex-rangetoidentifiertr46trim-newlinests-nodetslibtsutilstype-checktype-detecttype-festtypedarraytypedarray-to-bufferuglify-esuglify-jsunbox-primitiveunc-path-regexunicode-canonical-property-names-ecmascriptunicode-match-property-ecmascriptunicode-match-property-value-ecmascriptunicode-property-aliases-ecmascriptunion-valueunique-stringuniversal-user-agentuniversalifyunpipeunset-valueupdate-browserslist-dbupdate-notifieruri-jsurixurl-joinuseuse-subscriptionutil-deprecateutils-mergeuuidv8-compile-cachev8-compile-cache-libv8-to-istanbulvalidate-npm-package-licensevaryvlqvm2walkerwcwidthweb-streams-polyfillwebidl-conversionswhatwg-fetchwhatwg-urlwhichwhich-boxed-primitivewhich-modulewidest-linewildcard-matchwindows-releaseword-wrapwordwrapwrap-ansiwrappywrite-file-atomicwsxcodexdg-basedirxmlbuilderxmldocxregexpxtendy18nyallistyamlyargsyargs-parserynyocto-queue
1.0.0

2 years ago