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/SDKEnvironmentDescriptionPackage & Documentation
prembly-react-kycReact (Web)Custom React hook (useIdentityPayKYC) to trigger identity verification modal windows in web appshttps://www.npmjs.com/package/prembly-react-kyc | https://docs.prembly.com/docs/react
prembly-react-nativeReact NativeMobile-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

ParameterTypeRequiredDescription
widget_keystringYesYour public API key from the Prembly dashboard.
widget_idstringYesThe specific verification workflow ID created in your dashboard.
emailstringYesThe user's email address.
first_namestringOptionalUser's first name to pre-fill the form.
last_namestringOptionalUser's last name to pre-fill the form.
phonestringOptionalUser's phone number.
metadataobjectOptionalCustom key-value pairs (e.g., transaction_id) passed back in response callbacks.
callbackfunctionYes

Did this page help you?