React Native SDK
The Dojah platform has a smooth widget that enables your users to authorize access to their accounts. This widget works effortlessly across various browsers and devices of all sizes.
π Get Started with React Native SDK - Dojah
Installation
Configuration and usage
Reference : https://www.npmjs.com/package/dojah-kyc-sdk-react_native
Example Application: https://github.com/dojah-inc/dojah-react-native-sdk
Android Setup
Requirements
- Minimum Android SDK version - 21
- Supported targetSdkVersion - 35
In your android root/build.gradle file set maven path:
Or Set maven path in your root/settings.gradle file:
Permissions
For Android you donβt need to declare permissions, its already included in the Package.
IOS Setup
Requirements
- Minimum iOS version - 14
Add the following POD dependencies in your Podfile app under your App target
example
and run pod install in your ios folder:
Make some few changes in your AppDelegate.mm file
- Add the following imports:
- Then replace application function in your AppDelegate with the following:
REMEMBER TO CHANGE THE Your App Name,to the actual name of your App
Permissions
For IOS, Add the following keys to your Info.plist file:
NSCameraUsageDescription - describe why your app needs access to the camera. This is called Privacy - Camera Usage Description in the visual editor.
NSMicrophoneUsageDescription - describe why your app needs access to the microphone, if you intend to record videos. This is called Privacy - Microphone Usage Description in the visual editor.
NSLocationWhenInUseUsageDescription - describe why your app needs access to the location, if you intend to verify address/location. This is called Privacy - Location Usage Description in the visual editor.
Usage
To start KYC, import Dojah in your React Native code, and launch Dojah Screen
SDK Parameters
WidgetID
- aREQUIRED
parameter. You get this ID when you sign up on the Dojah platform, follow the next step to generate your WidgetId.Reference ID
- anOPTIONAL
parameter that allows you to initialize the SDK for an ongoing verification.Email Address
- anOPTIONAL
parameter that allows you to initialize the SDK for an ongoing verification.
How to Get a Widget ID
To use the SDK, you need a WidgetID, which is a required parameter for initializing the SDK. You can obtain this by creating a flow on the Dojah platform. Follow these steps to configure and get your Widget ID:
Contributing
- [KYC WIDGET Repository] (https://github.com/dojah-inc/dojah-react-native-sdk)
- Fork it!
- Create your feature branch:
git checkout -b feature/feature-name
- Commit your changes:
git commit -am 'Some commit message'
- Push to the branch:
git push origin feature/feature-name
- Submit a pull request ππ
WebView (Use this if you need custom UI not provided by launchDojahKyc)
-Usage
-NB: Kindly input your widget_id inside uri above, Get it from your Easy Onboard application dashboard here
Was this page helpful?