@idenfy/react-native-sdk
v2.8.2
Published
iDenfy ReactNative SDK
Readme
This is an official React Native plugin, which provides an easier integration of iDenfy KYC services. This plugin offers identity verification, face authentication and request update flows
Table of contents
Getting started
1. Obtaining an authentication token
The SDK requires token for starting initialization. Token generation guide
2. Adding Idenfy React Native SDK
2.1 Availability information & new project setup
Minimum required versions by the platform:
React Native - 0.81.5
IOS - 15.1
iOS SDK is built using xCode 27.1
Android - API 24
If you are starting a new React Native project you can follow environment setup guide. Once the setup completed successfully, you can initialize a new project with CLI:
$ npx react-native init AwesomeProject2.2 Adding SDK dependency through npm
Navigate to the root directory of your React Native project. The rest of this second section will assume you are in the root directory. Run the following command:
$ npm install @idenfy/react-native-sdk --save2.3 Configure Android project
Manually update build files without the script
Add the maven link android/build.gradle:
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}Enable multidex in android/app/build.gradle:
android {
defaultConfig {
multiDexEnabled true
}
}Proguard rules
If you use code obfuscation for Android with a proguard-rules.pro file. You should update it with ours, otherwise some unexpected behaviour might occur.
Also, since AGP 8.0 enables R8 full mode by default, make sure you have disabled R8 full mode in the gradle.properties file:
android.enableR8.fullMode=false2.4 Configure IOS project
`NSCameraUsageDescription' must be provided in the application's 'Info.plist' file:
<key>NSCameraUsageDescription</key>
<string>Required for document and facial capture</string>Note: Since version 2.8.2, the plugin uses the dynamic iDenfy iOS SDK (
iDenfySDK/iDenfyLiveness). The-Staticvariant (iDenfySDK-Static) no longer exists. Dynamic linkage (use_frameworks! :linkage => :dynamic) is now the default setup. If you need static linkage, see Using static linkage.
Set dynamic linkage in your app target:
use_frameworks! :linkage => :dynamicAdd the following post_install block inside your app target:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
if target.name == "lottie-ios"
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = '15.0'
end
end
end
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false
)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
endThe Podfile should look like the one in the /example/ios/Podfile
The main idea is to have use_native_modules!, dynamic linkage and flipper disabled in the target Pod settings.
Take a look at a fresh projects' Podfile:
# Resolve react_native_pods.rb with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', __dir__]).strip
platform :ios, '15.1'
prepare_react_native_project!
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end
target 'IdenfyReactNativeExample' do
use_frameworks! :linkage => :dynamic
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
# :flipper_configuration => flipper_config,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
target 'IdenfyReactNativeExampleTests' do
inherit! :complete
# Pods for testing
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
if target.name == "lottie-ios"
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
config.build_settings["IPHONEOS_DEPLOYMENT_TARGET"] = '15.0'
end
end
end
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false,
# :ccache_enabled => true
)
end
endUsing static linkage
If your project requires static linkage, keep use_frameworks! :linkage => :static in your app target and add the following pre_install block before the app target. The iDenfy SDK is a dynamic framework, so lottie-ios must be built as a dynamic framework as well:
pre_install do |installer|
installer.pod_targets.each do |pod|
if pod.name == 'lottie-ios'
def pod.build_type
Pod::BuildType.new(:linkage => :dynamic, :packaging => :framework)
end
end
end
end
target 'YourApp' do
use_frameworks! :linkage => :static
# ...
endInstall the pods (run pod update as well):
cd ios
pod install
pod update
cd ..2.5 Testing 3D liveness on IOS
Debugging the IOS 3D liveness is not possible. If the application is launched with the Xcode debugger attached, the 3D liveness session will crash, see Debugging 3D Liveness.
To test the 3D liveness on IOS, launch the application without the debugger — for example, with npx react-native run-ios instead of running it from Xcode, or by opening the installed application directly on the device.
Usage
Identity verification flow usage
After successful integration you should be able to call IdenfyReactNative.start method.
If project is not successfully compiled or runtime issues occurs, make sure you have followed the steps. For better understanding you may check at the sample app in this repository.
Once you have an authentication token, which can be retried with following code, found in the example app, you can call start method (you need to import it):
import { start, startFaceReAuth, startRequestUpdate } from '@idenfy/react-native-sdk';
getAuthToken = () => {
let encodedAuth = new Buffer(apiKey + ':' + apiSecret).toString('base64');
return fetch(BASE_URL + 'api/v2/token', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
'Authorization': 'Basic ' + encodedAuth,
},
body: JSON.stringify({
clientId: clientId,
}),
})
.then((response) => {
if (response.ok) {
response.json().then((json) => this.startSDK(json.authToken));
} else {
response.json().then((json) => {
console.log(json);
this.setState({
message:
'Error getting authToken, status code is: ' +
response.status.toString() +
'\n \n Response: ' +
JSON.stringify(json),
sdkFlowComplete: true,
});
});
}
})
.catch((error) => {
this.setState({
message: error.message,
sdkFlowComplete: true,
});
console.error(error);
});
};Calling IdenfyReactNative.start with provided authToken:
import { start, startFaceReAuth, startRequestUpdate } from '@idenfy/react-native-sdk';
startSDK = (authToken: String) => {
const idenfyUISettings = new IdenfyUIBuilder()
.withAdditionalSupportView(true)
.withIdenfyDocumentSelectionType(
IdenfyDocumentSelectionType.navigateOnContinueButton
)
.withOnBoardingViewType(IdenfyOnBoardingViewType.multipleStatic)
.withInstructions(IdenfyInstructionsEnum.dialog)
.withImmediateRedirect(ImmediateRedirectEnum.full)
.withLanguageSelection(true)
.withIdenfyIdentificationResultsUISettingsV2(
new IdenfyIdentificationResultsUISettingsV2(true, true, true)
)
.withDocumentCameraFrameVisibility(
new HiddenForSpecificCountriesAndDocumentTypes({
US: [DocumentTypeEnum.PASSPORT],
})
)
.withMismatchTagsAlert(true)
.withCountryAndDocumentSelectionJoined(true)
.withBottomSheetDialogs(true)
.build();
const idenfySettings = new IdenfyBuilder()
.withSelectedLocale(IdenfyLocaleEnum.EN)
.withUISettings(idenfyUISettings)
.withSSLPinning(true)
.build();
// Start with Idenfy Settings
start({
authToken: authToken,
idenfySettings: idenfySettings.toJson(),
})
// Start without Idenfy Settings
// start({
// authToken: authToken,
// })
.then((response) => {
this.setState({
message: JSON.stringify(response),
sdkFlowComplete: true,
});
})
.catch((error) => {
this.setState({
message: error.code + ': ' + error.message,
sdkFlowComplete: true,
});
});
};Face Authentication flow usage
To use the newest face authentication feature you need to have a scanRef. On how to obtain it as well as general information are available in our documentation.
1. Checking face authentication status
Firstly, you should check for the authentication status, whether the face authentication can be performed. Having checked that, you will receive a token status:
| Name | Description |
| ---------------- | --------------------------------------- |
| AUTHENTICATION | The user can authenticate by face |
| IDENTIFICATION | The user must perform an identification |
getFaceAuthTokenType = () => {
let encodedAuth = new Buffer(apiKey + ':' + apiSecret).toString('base64');
return fetch(
BASE_URL +
'identification/facial-auth/' +
scanRef +
'/check-status/?method=' +
authenticationMethod,
{
method: 'GET',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
'Authorization': 'Basic ' + encodedAuth,
},
}
)
.then((response) => {
console.log(response);
if (response.ok) {
response.json().then((json) => {
switch (json.type) {
case 'AUTHENTICATION':
//The user can authenticate by face
this.getAuthTokenForFaceAuth(json.type);
break;
default:
//The user must perform an identification
break;
}
});
} else {
response.json().then((json) => {
console.log(json);
this.setState({
message:
'Error getting authToken, status code is: ' +
response.status.toString() +
'\n \n Response: ' +
JSON.stringify(json),
sdkFlowComplete: true,
});
});
}
})
.catch((error) => {
this.setState({
message: error.message,
sdkFlowComplete: true,
});
console.error(error);
});
};2. Obtaining token
Next step is to obtain the authentication token. Please use this util method
getAuthTokenForFaceAuth = (type: String) => {
let encodedAuth = new Buffer(apiKey + ':' + apiSecret).toString('base64');
return fetch(BASE_URL + 'partner/authentication-info', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
'Authorization': 'Basic ' + encodedAuth,
},
body: JSON.stringify({
scanRef: scanRef,
type: type,
method: authenticationMethod,
}),
})
.then((response) => {
console.log(response);
if (response.ok) {
response.json().then((json) => this.startFaceAuthSDK(json.token));
} else {
response.json().then((json) => {
console.log(json);
this.setState({
message:
'Error getting authToken, status code is: ' +
response.status.toString() +
'\n \n Response: ' +
JSON.stringify(json),
sdkFlowComplete: true,
});
});
}
})
.catch((error) => {
this.setState({
message: error.message,
sdkFlowComplete: true,
});
console.error(error);
});
};3. Initializing the SDK
import { start, startFaceReAuth, startRequestUpdate } from '@idenfy/react-native-sdk';
startFaceAuthSDK = (authToken: String) => {
startFaceReAuth({
authToken: authToken,
})
.then((response) => {
this.setState({
message: JSON.stringify(response),
sdkFlowComplete: true,
});
})
.catch((error) => {
this.setState({
message: error.code + ': ' + error.message,
sdkFlowComplete: true,
});
});
};An additional bool can be passed to the function to set the immediate redirect feature. This sets whether the results from iDenfy SDK should be received immediately without any additional result pages
startFaceReAuth({
authToken: authToken,
withImmediateRedirect: false,
});Face authentication UI settings class can be passed to modify the face authentication flow:
let idenfyFaceAuthUISettings = new IdenfyFaceAuthUIBuilder()
.withLanguageSelection(true)
.withOnBoardingView(true)
.build();
startFaceReAuth({
authToken: authToken,
withImmediateRedirect: false,
idenfyFaceAuthUISettings: idenfyFaceAuthUISettings,
});Request update flow usage
The request update flow allows users to provide additional information for their identification, such as proof of address (POA), risk assessment data, or questionnaire responses.
1. Obtaining a request update token
To start the request update flow, generate a token by making a POST request:
POST https://ivs.idenfy.com/api/v2/kyc/identifications/{scanRef}/request-information/The request body can include optional fields:
{
"additionalStepUploadRequired": true,
"questionnaire": "questionnaireId"
}2. Starting the request update flow
import { start, startFaceReAuth, startRequestUpdate } from '@idenfy/react-native-sdk';
startRequestUpdateSDK = (authToken: String) => {
startRequestUpdate({
authToken: authToken,
})
.then((response) => {
this.setState({
message: JSON.stringify(response),
sdkFlowComplete: true,
});
})
.catch((error) => {
this.setState({
message: error.code + ': ' + error.message,
sdkFlowComplete: true,
});
});
};Callbacks
Identity verification flow callbacks
Callback from the SDK can be retrieved from start promise:
import { start, startFaceReAuth, startRequestUpdate } from '@idenfy/react-native-sdk';
start({
authToken: authToken,
}).then((response) => {
this.setState({
message: JSON.stringify(response),
sdkFlowComplete: true,
});
});Result will have a following JSON structure:
{
"autoIdentificationStatus": "APPROVED",
"manualIdentificationStatus": "APPROVED"
}Information about the IdenfyIdentificationResult autoIdentificationStatus statuses:
| Name | Description |
| ------------ | --------------------------------------------------------------------------------------------------------------------------------- |
| APPROVED | The user completed an identification flow and the identification status, provided by an automated platform, is APPROVED. |
| FAILED | The user completed an identification flow and the identification status, provided by an automated platform, is FAILED. |
| UNVERIFIED | The user did not complete an identification flow and the identification status, provided by an automated platform, is UNVERIFIED. |
Information about the IdenfyIdentificationResult manualIdentificationStatus statuses:
| Name | Description |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| APPROVED | The user completed an identification flow and was verified manually while waiting for the manual verification results in the iDenfy SDK. The identification status, provided by a manual review, is APPROVED. |
| FAILED | The user completed an identification flow and was verified manually while waiting for the manual verification results in the iDenfy SDK. The identification status, provided by a manual review, is FAILED. |
| WAITING | The user completed an identification flow and started waiting for the manual verification results in the iDenfy SDK. Then he/she decided to stop waiting and pressed a "BACK TO ACCOUNT" button. The manual identification review is still ongoing. |
| INACTIVE | The user was only verified by an automated platform, not by a manual reviewer. The identification performed by the user can still be verified by the manual review if your system uses the manual verification service. |
*Note The manualIdentificationStatus status always returns INACTIVE status, unless your system implements manual identification callback, but does not create a separate waiting screen for indicating about the ongoing manual identity verification process. For better customization we suggest using the immediate redirect feature. As a result, the user will not see an automatic identification status, provided by iDenfy service. The SDK will be closed while showing loading indicators.
Face authentication flow callbacks
After Face authentication is completed the SDK closes and returns response using SDK callbacks as well as webhook results.
Callback from the SDK can be retrieved from startFaceReAuth promise:
import { start, startFaceReAuth, startRequestUpdate } from '@idenfy/react-native-sdk';
startFaceReAuth({
authToken: authToken,
}).then((response) => {
this.setState({
message: JSON.stringify(response),
sdkFlowComplete: true,
});
});Result will have a following JSON structure:
{
"faceAuthenticationStatus": "SUCCESS"
}The possible values and their explanations are:
| Name | Description |
| --------- | ---------------------------------------------------------------------------------------------------------------------- |
| SUCCESS | The user completed a face authentication flow and the authentication status, provided by the platform, is SUCCESS. |
| FAILED | The user completed a face authentication flow and the authentication status, provided by the platform, is FAILED. |
| EXIT | The user did not complete a face authentication flow and the authentication status, provided by the platform, is EXIT. |
Request update flow callbacks
After the request update flow is completed, the SDK closes and returns a response.
Callback from the SDK can be retrieved from startRequestUpdate promise:
import { start, startFaceReAuth, startRequestUpdate } from '@idenfy/react-native-sdk';
startRequestUpdate({
authToken: authToken,
}).then((response) => {
this.setState({
message: JSON.stringify(response),
sdkFlowComplete: true,
});
});Result will have a following JSON structure:
{
"informationUpdateStatus": "COMPLETED"
}The possible values and their explanations are:
| Name | Description |
| ----------- | ------------------------------------------------------------------------------------- |
| COMPLETED | The user completed the request update flow. |
| EXPIRED | The user cancelled the request update flow or the token has expired. |
Additional customization
Changing SDK colors from TypeScript
You can customize SDK colors directly from TypeScript using IdenfyColorScheme, without editing native Android XML or iOS code. Create an IdenfyColorScheme instance, set the desired color properties, and pass it to IdenfyUIBuilder via .withColorScheme():
import { IdenfyColorScheme, IdenfyUIBuilder } from '@idenfy/react-native-sdk';
const mainColor = 0xFF6AA82F;
const secondaryColor = 0xFF000000;
const backgroundColor = 0xFFFFFFFF;
const white = 0xFFFFFFFF;
const colorScheme = new IdenfyColorScheme();
// Base colors
colorScheme.idenfyMainColorV2 = mainColor;
colorScheme.idenfyMainDarkerColorV2 = mainColor;
colorScheme.idenfySecondColorV2 = secondaryColor;
colorScheme.idenfyBackgroundColorV2 = backgroundColor;
// Gradient button
colorScheme.idenfyGradientButtonColorStart = mainColor;
colorScheme.idenfyGradientButtonColorEnd = mainColor;
// Toolbar
colorScheme.idenfyDefaultAppBarIconTintColor = secondaryColor;
colorScheme.idenfyLanguageSelectionToolbarLanguageSelectionIconTintColor = secondaryColor;
colorScheme.idenfyLanguageSelectionToolbarCloseIconTintColor = secondaryColor;
// Continue button text & spinner
colorScheme.idenfyContinueButtonTextColor = secondaryColor;
colorScheme.idenfyContinueButtonSpinnerColor = secondaryColor;
colorScheme.idenfyRetakeButtonTextColor = secondaryColor;
// Camera buttons
colorScheme.idenfyDocumentCameraPreviewSessionTakePhotoButtonUnFocusedTintColor = mainColor;
colorScheme.idenfyFaceCameraPreviewSessionTakePhotoButtonUnFocusedTintColor = mainColor;
colorScheme.idenfyFaceCameraPreviewSessionFaceOvalColor = white;
// Photo result
colorScheme.idenfyPhotoResultCardTitleColor = secondaryColor;
colorScheme.idenfyRetakeButtonBackgroundColor = white;
colorScheme.idenfyRetakeButtonBorderColor = secondaryColor;
colorScheme.idenfyCountryAndDocumentSelectionViewItemSelectionHighlightedTextColor = secondaryColor;
const idenfyUISettings = new IdenfyUIBuilder()
.withColorScheme(colorScheme)
.build();
const idenfySettings = new IdenfyBuilder()
.withUISettings(idenfyUISettings)
.withSSLPinning(true)
.build();All IdenfyColorScheme properties are optional — only set the ones you want to override.
Applying a custom logo from TypeScript
Replace the iDenfy logo with your own by passing an IdenfyLogo to IdenfyUIBuilder via .withLogo().
The logo is a native image of your app, so it must be added to both the Android and the iOS project under the same name. Images bundled by Metro (require('./logo.png')) are not found.
1. Android — add the image to the drawable resources of your app:
android/app/src/main/res/drawable/your_logo.pngA vector drawable (your_logo.xml) works as well. Resource names may only contain lowercase letters, digits and underscores.
2. iOS — open the .xcworkspace of your app in Xcode and add an image set named your_logo to the asset catalog:
ios/YourApp/Images.xcassets/your_logo.imageset/An image file added to the app target (included in "Copy Bundle Resources") also works.
3. TypeScript — reference the image by its name, without a file extension:
import {
IdenfyLogo,
IdenfyLogoPlacement,
IdenfyUIBuilder,
} from '@idenfy/react-native-sdk';
const idenfyUISettings = new IdenfyUIBuilder()
.withLogo(new IdenfyLogo('your_logo'))
.withLogo(
new IdenfyLogo('your_splash_logo', {
tint: 0xff000000,
alpha: 0.8,
width: 120,
height: 40,
}),
IdenfyLogoPlacement.splash
)
.build();Without a placement, the logo is used everywhere the SDK shows one. A specific placement overrides the logo set for IdenfyLogoPlacement.all.
| Placement | Where the logo is shown |
| --- | --- |
| all | Every placement that has no specific logo set. This is the default. |
| toolbar | The toolbar of every screen that shows a logo. |
| liveness | The branding image of the 3D liveness screens. |
| splash | The large icon in the centre of the splash screen. |
IdenfyLogo options:
| Parameter | Description |
| --- | --- |
| imageName | Name of the native image. Required. |
| tint | ARGB color applied on top of the logo. |
| alpha | Opacity from 0 to 1. |
| width, height | Size for toolbar and splash, in dp on Android and points on iOS. When not set, the default size is kept. |
Colors from IdenfyColorScheme are never applied to a custom logo — only its own tint is used. On the Android 3D liveness screens, tint and alpha are not supported. If the image is not found, the logo is skipped and the default one is shown.
The same withLogo method is available in IdenfyFaceAuthUIBuilder and IdenfyBankCardVerificationUIBuilder.
Other customization
Currently, @idenfy/react-native-sdk only provides IdenfySettings and IdenfyUISettings options via React Native code directly:
const idenfyUISettings = new IdenfyUIBuilder()
.withAdditionalSupportView(true)
.withIdenfyDocumentSelectionType(
IdenfyDocumentSelectionType.navigateOnContinueButton
)
.withOnBoardingViewType(IdenfyOnBoardingViewType.multipleStatic)
.withInstructions(IdenfyInstructionsEnum.dialog)
.withImmediateRedirect(ImmediateRedirectEnum.full)
.withLanguageSelection(true)
.withIdenfyIdentificationResultsUISettingsV2(
new IdenfyIdentificationResultsUISettingsV2(true, true, true)
)
.withDocumentCameraFrameVisibility(
new HiddenForSpecificCountriesAndDocumentTypes({
US: [DocumentTypeEnum.PASSPORT],
})
)
.withMismatchTagsAlert(true)
.withCountryAndDocumentSelectionJoined(true)
.withBottomSheetDialogs(true)
.build();
const idenfySettings = new IdenfyBuilder()
.withSelectedLocale(IdenfyLocaleEnum.EN)
.withUISettings(idenfyUISettings)
.withSSLPinning(true)
.build();
// Start with Idenfy Settings
start({
authToken: authToken,
idenfySettings: idenfySettings.toJson(),
});For any additional SDK customization you should edit native code inside of the plugin.
Android customization: Follow Android native SDK guide and edit IdenfyReactNativeModule.kt.
IOS customization: Follow IOS native SDK guide and edit IdenfyReactNative.swift.
A detailed guide on how to provide complex customization:
1. Fork this repository
First, fork this repository because you will reference it directly via Github in your package.json.
2. Apply customization where needed
Most of the native customization for IOS are done via code changes. For Android, it is not needed most of the time.
Take a look at the IOS changes in this file in the SDK with custom UI:
let idenfyColorMain = "#EA9619"
let idenfyColorButton = "#6539AC"
IdenfyCommonColors.idenfyMainColorV2 = UIColor(hexString: idenfyColorMain)
IdenfyCommonColors.idenfyMainDarkerColorV2 = UIColor(hexString: idenfyColorMain)
IdenfyCommonColors.idenfyGradientColor1V2 = UIColor(hexString: idenfyColorButton)
IdenfyCommonColors.idenfyGradientColor2V2 = UIColor(hexString: idenfyColorButton)
IdenfyToolbarUISettingsV2.idenfyDefaultToolbarBackgroundColor = UIColor(hexString: idenfyColorMain)
IdenfyToolbarUISettingsV2.idenfyDefaultToolbarBackIconTintColor = IdenfyCommonColors.idenfyBlack
IdenfyToolbarUISettingsV2.idenfyDefaultToolbarLogoIconTintColor = IdenfyCommonColors.idenfyBlack
IdenfyToolbarUISettingsV2.idenfyLanguageSelectionToolbarLanguageSelectionIconTintColor = IdenfyCommonColors.idenfyBlack
IdenfyToolbarUISettingsV2.idenfyLanguageSelectionToolbarCloseIconTintColor = IdenfyCommonColors.idenfyBlack
IdenfyCommonColors.idenfyPhotoResultDetailsCardBackgroundColorV2 = UIColor(hexString: "#FFE5BD")
IdenfyPhotoResultViewUISettingsV2.idenfyPhotoResultViewDetailsCardTitleColor = UIColor(hexString: idenfyColorButton)
let idenfyViewsV2:IdenfyViewsV2 = IdenfyViewsBuilderV2()
.withCountryCellView(CountryCell.self)
.build()
let idenfyController = IdenfyController.shared
idenfyController.initializeIdenfySDKV2WithManual(idenfySettingsV2: idenfySettingsV2, idenfyViewsV2: idenfyViewsV2)3. Push changes & include the library
You should add the package with npm and by defining your repository in the source, like this:
npm install --save https://github.com/idenfy/ReactNativeSDK/#ui-customization-v14. Apply remaining customization directly in your react native project.
For Android you need to include the modified resources files (colors, layout changes, images). You do so by dragging all resource files to the android folder.

For IOS you need to include the modified resources files (only images, since colors, are changed in 2 step). You do so by dragging IdenfyAssets.xcassets to the ios folder.

After dragging don't forget to link the folder in the project settings, see attached images belows.

5. Compile everything, and you are good to go!
Changes will be present, and it will be easy to keep up with the SDK changes, by using Git fork.
6. Check IOS example
If needed check the customization example with all folders in a right structure. Here is a project.
