React
React SDK implementation
The Prembly React SDK provides a simple hook to integrate identity verification, KYC, and liveness checks directly into your React applications with minimal configuration.
Available React SDK Packages
| Package/SDK | Environment | Description | Package & Documentation |
|---|---|---|---|
| prembly-react-kyc | React (Web) | Custom React hook (useIdentityPayKYC) to trigger identity verification modal windows in web apps | https://www.npmjs.com/package/prembly-react-kyc | https://docs.prembly.com/docs/react |
| prembly-react-native | React Native | Mobile-native components supporting camera access, document capture, and biometric checks on iOS/Android. | https://www.npmjs.com/package/prembly-react-kyc | https://www.google.com/search?q=https://docs.prembly.com/docs/react-native |
Configuration Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| widget_key | string | Yes | Your public API key from the Prembly dashboard. |
| widget_id | string | Yes | The specific verification workflow ID created in your dashboard. |
| string | Yes | The user's email address. | |
| first_name | string | Optional | User's first name to pre-fill the form. |
| last_name | string | Optional | User's last name to pre-fill the form. |
| phone | string | Optional | User's phone number. |
| metadata | object | Optional | Custom key-value pairs (e.g., transaction_id) passed back in response callbacks. |
| callback | function | Yes |
Updated 2 days ago
Did this page help you?
