React Native SDK / Plugin
SDK For React Native
Installation (RN >= 0.72)
npm i @faceki/react-native-sdk
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 the 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/)
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
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 a your app, you can utilize the 'react-native-permissions' package. However, for Android devices, the camera permission is by default handled by the package. https://www.npmjs.com/package/react-native-permissions
Troubleshoot
Vector icons are causing an issue in release build in version <= 9.2.0 in android. There is an ongoing discussion about it. Simple fix until new verion is released.
Go to node_modules/react-native-vector-icons/fonts.gradle
Add this 👇
You can read on 👉 https://github.com/oblador/react-native-vector-icons/issues/1508
Sometimes its better to reinstall all the node_modules and pods again
Changelog
All notable changes to this project will be documented in this file.
[2.0.9] - 16-05-2024
Changed
README UPDATES
[2.0.8] - 16-05-2024
Changed
Remove Client ID and Secret, replaced with Verification LINK
Added SKIP button in header
[2.0.7] - 13-02-2024
Changed
Upgraded React Vision Camera to V3
[2.0.6] - 22-12-2023
Changed
Added Quality/Liveness Check While Capturing
Last updated