Skip to main content

Installation

The package depends on react-native-webview for the WebView component:

Overview

The React Native SDK provides three levels of integration: It also re-exports the full Verilock server API client from @verilock/node-sdk for backend calls.

Server API Client

The SDK re-exports everything from @verilock/node-sdk, so you can create sessions from your backend without an additional dependency.
Keep your API key secure. The server API client should only be used in backend code or secure server functions, never in the React Native bundle shipped to users.

VerilockWebView

The simplest integration. Renders the hosted verification flow inside a WebView modal. No camera or native module setup required.

VerilockWebView Props

VerilockVerification

A native UI component that walks users through each step of verification (welcome, document front, document back, selfie, processing, result). Gives you full control over look and feel with native React Native views.

VerilockVerification Props

Steps

The onStepChange callback receives one of the following step identifiers:

useVerilockSession Hook

For fully custom UIs. The hook manages API communication while you control every pixel.

Hook Options

Hook Return Values

Type Reference

Start with VerilockWebView for the fastest integration. Move to VerilockVerification or useVerilockSession when you need more control over the user experience.