2.8.0 • Published 12 months ago

@ha_tecno/live-id-sdk v2.8.0

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
12 months ago

Instalação

npm i @ha_tecno/live-id-sdk react-native-vision-camera react-native-fs
cd ios && pod install

Android

Abra o AndroidManifest.xml e adicione as seguintes linhas dentro da tag manifest:

    <uses-permission android:name="android.permission.CAMERA" />

iOS

Open your project's Info.plist and add the following lines inside the outermost "dict" tag:

    <key>NSCameraUsageDescription</key>
    <string>$(PRODUCT_NAME) needs access to your Camera.</string>

Uso Básico

LifeCertificate

import React from "react";
import { LifeCertificate } from "@ha_tecno/live-id-sdk";

export const LifeCertificateScreen = () => {
  const UID = "321";
  return <LifeCertificate UID={UID} mock={false} />;
};

FingerAuth

import React from "react";
import { FingerAuth } from "@ha_tecno/live-id-sdk";

export const FingerAuthScreen = () => {
  return (
  <FingerAuth
            UID={"321"}
            onSuccess={() => {})}
            isFocused={true}
            mock={false}
        />;
    );
};

FingerRegister

import React from "react";
import { FingerRegister } from "@ha_tecno/live-id-sdk";

export const FingerRegisterScreen = () => {
  return (
  <FingerRegister
            UID={"321"}
            onSuccess={() => {})}
            isFocused={true}
            mock={false}
        />;
    );
};

MultiFingerRegister

import React from "react";
import { MultiFingerRegister } from "@ha_tecno/live-id-sdk";

export const MultiFingerRegisterScreen = () => {
  return (
  <MultiFingerRegister
            UID={"321"}
            onSuccess={() => {})}
            isFocused={true}
            mock={false}
        />;
    );
};

License

MIT