๐ Get Started with React Native SDK - Dojah
Installation [CLI]
yarn
Installation [Expo]
Setup
Install expo-build-properties if you donโt have it
Add the following plugins and permissions in your app.json
Run prebuild:
Android Setup
Requirements
- Minimum Android SDK version - 21
- Supported targetSdkVersion - 35
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
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 ScreenSDK 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)
-UsageWebview