Skip to main content
@vouchmark/widget-react-native wraps the Vouchmark widget in a native WebView, with camera and microphone access enabled for document scans and liveness checks. It ships both a full-screen VouchmarkWidget and a VouchmarkModal.

Installation

Peer dependencies

The package requires react-native-webview:
For iOS, run cd ios && pod install after installation.

Quick start

Props

To show the widget as a modal instead of full-screen:

Permissions

The widget may need camera access for liveness checks and document scans. Add to your app config:

iOS (Info.plist)

Android (AndroidManifest.xml)

Expo support

The package works with Expo (managed workflow) when react-native-webview is installed via expo install:

Environment variables

Copy .env.example to .env and set:
The WebView loads the widget from https://widget.vouchmark.com by default. That page bootstraps against https://api.vouchmark.com/v1. All three widget credentials must align — see Environments. After changing .env, restart Metro with a clean cache: npx expo start -c.

Platform support