React Native SDK / Plugin

SDK For React Native

Installation (RN >= 0.74)

npm i @faceki/blaze-react-native
npm i react-native-vision-camera
npm i lottie-react-native
npm i @bam.tech/[email protected]

This SDK is tested with @bam.tech/react-native-image-resizer version 3.0.7, you can use latest if doesn't work. Kindly use version 3.0.7

Permissions

Android:

Add the following uses-permission to your AndroidManifest.xml (usually found at: android/app/src/main/)

<uses-permission android:name="android.permission.CAMERA" />

IOS

Add the following usage descriptions to your Info.plist (usually found at: ios/PROJECT_NAME/)

<key>NSCameraUsageDescription</key>
<string>$(PRODUCT_NAME) needs access to your Camera.</string>

Add Support for Gif in Android

Add to your dependencies in android/app/build.gradle

More information: https://reactnative.dev/docs/image?syntax=functional#gif-and-webp-support-on-android

Troubleshoot for react-native-vector-icons

Android

Add this in your android/app/build.gradle If not already added.

IOS

Add this to info.plist if you have issues in showing icons from react native vector icons

Add this in your podfile

For More Information & Detailed Guide About Icons: https://www.npmjs.com/package/react-native-vector-icons

RUN

USAGE

You would need to generate EKYC Link through the API here:

https://docs.faceki.com/api-integration/verification-apis/generate-kyc-link

In the response use the key "data" to initiate the SDK

Advance Usage

NOTE:

To request camera permissions from users on iOS in your app, you can utilize the 'react-native-permissions' package. However, for Android devices, the camera permission is by default handled by the package. react-native-permissions

Troubleshoot

Vector icons are causing an issue in the release build in version <= 9.2.0 in android. There is an ongoing discussion about it. Simple fix until the new version is released.

Go to node_modules/react-native-vector-icons/fonts.gradle

Add this 👇

You can read on 👉 GitHub Discussion

Sometimes it's better to reinstall all the node_modules and pods again

Change Log

  • 2024-05-03 -- 1.0.7

    • Added Callback for LivenessFailed

  • 2024-05-03 -- 1.0.6

    • Update for Vision Camera V4 (4.5.3)

    • Support for the React Native 0.74.X

  • 2024-05-03 -- 1.0.5

    • Update For Removing Client ID and Secret replaced with Generated EKYC Link

  • 2024-02-26 -- 1.0.4

    • Update For Issue 413, Resize/Compress Image Added

  • 2024-02-25 -- 1.0.3

    • Update Guidance Gifs

  • 2024-02-25 -- 1.0.2

    • Update Vector Icon to Latest

  • 2024-02-14 -- 1.0.1

    • Upgraded React Vision Camera V2 to V3

  • 2024-1-24 -- 1.0.0

    • Initial Release for FACEKI BLAZE 3.0

Need Support?

Contact us on WhatsApp Click here

Last updated