Skip to content
Berbix React SDK for rendering the Berbix Verify flow
JavaScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Berbix React SDK

This Berbix React Native library provides simple interfaces to interact with the Berbix Verify flow.


This library is dependent on the react-native-camera component. Due to this dependency, you may need to follow their more detailed installation instructions if the basic instructions here are insufficient.

Install the SDK

npm install berbix-react-native

Set up dependencies

react-native link react-native-camera

Add the following line to android/app/build.gradle in the defaultConfig block.

missingDimensionStrategy 'react-native-camera', 'general'

Set up permissions

Add an entry for camera access to your Info.plist for iOS access.

<string>Your message to user when the camera is accessed for the first time</string>


Basic usage

import React from 'react';
import BerbixVerify from 'berbix-react-native';

class ExampleComponent extends React.Component {
  render() {
    return (
        onComplete={event => {
          // send event.value to backend to fetch user verification data

Full propTypes

BerbixVerify.propTypes = {
  // Required
  clientId: PropTypes.string.isRequired,

  // Configurations
  templateKey: PropTypes.string,
  clientToken: PropTypes.string,
  email: PropTypes.string,
  phone: PropTypes.string,

  // Event handlers
  onComplete: PropTypes.func.isRequired,
  onError: PropTypes.func,
  onDisplay: PropTypes.func,
  onStateChange: PropTypes.func,


# Update the version in package.json
npm run build
npm publish
You can’t perform that action at this time.