VideoCall Component
1. Introduction
Mobile SDK is a set of libraries (Components) that offers a series of functionalities and services, allowing its integration into a Mobile application in a simple, totally scalable way. Depending on the use case that is required, the installation of certain components must be carried out. Its high level of modularity allows that, in the future, other new components can be added without affecting at all those already integrated into the project.
The Component addressed in the current document is named SelphID Component. This is responsible for capturing documents and the subsequent extraction and analysis of the data obtained from them. Its main functionalities are the following:
- 
Internal camera management. 
- 
Permissions management. 
- 
Assists in the processes of capturing the front and back of the document. 
- 
Extraction of the information contained in the document. 
- 
Obtaining the images of the back and reverse of the document, as well as other images included in the document: user's face, user's signature,... 
- 
High level of configuration: different countries, languages, types of documents... 
1.1 Minimum requirements
The minimum native version (Android and iOS) of the SDK are as follows:
- 
Minimum Android version: 24 - JDK 11 
- 
Minimum iOS version: 13 
Regarding the architecture of the mobile device:
- armeabi-v7, x86, arm64 and x64
1.2 Plugin version
The current plugin version can be checked as follows:
- 
We look for the package.json file at the root of the plugin. 
- 
The KEY/TAG version indicates the version. 
2. Component integration 
Before integrating this component, it is recommended to read the documentation related to Core Component and follow the instructions indicated in said document.
ℹ️ For this section, the following values will be considered:
- 
<%APPLICATION_PATH%> - Path to the root of the application (example: /folder/example) 
- 
<%PLUGIN_CORE_PATH%> - Path to the root of the core plugin, which is mandatory (example: /folder/sdk-core) 
- 
<%PLUGIN_SELPHID_PATH%> - Path to the root of the current plugin (example: /folder/sdk-selphid) 
2.1. Plugin installation: Common
The plugin allows execution on Android and iOS platforms. This section explains the common steps to all platforms. To install the plugin, the following steps must be adopted:
- Make sure react-native is installed.
- Access <%APPLICATION_PATH%> at a terminal and run:
yarn add @facephi/sdk-core-react-native
yarn add @facephi/sdk-selphid-react-native
yarn install
- In addition, to install the plugin on iOS, the following must also be executed:
cd ios
pod install
- It is important to verify that the path to the plugin is correctly defined in package.json:
"dependencies": {
  "sdk-core-react-native": <% PLUGIN_CORE_PATH %>,
  "sdk-selphid-react-native": <% PLUGIN_SELPHID_PATH %>
}
After running the above steps, you can start the app with the sdk/component installed.
- Finally, to launch the projects, the following commands must be executed in two ways:
From Terminal
For Android:
npx react-native run-android 
or
npx react-native run-android --active-arch-only
For iOS:
npx react-native run-ios
From different IDEs
Projects generated in the Android and iOS folders can be opened, compiled, and debugged using Android Studio and XCode respectively.