> For the complete documentation index, see [llms.txt](https://valify.gitbook.io/valify-ios-sdk-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://valify.gitbook.io/valify-ios-sdk-documentation/document-capture/react-native-plugin/installation-guide.md).

# Installation Guide

### iOS **Minimum Requirements**

* iOS Version: 12
* Xcode Version: 15
* Camera access is mandatory

### Android **Minimum Requirements**

* Jetpack Library: AndroidX
* Java Version: 11
* API Level: 21 or higher (Android 5.0)
* Compile SDK: 32 or higher
* Camera access is mandatory (**NOTE :** The SDK handles permission requests, so you don't need to implement them in your app).

### **Installation**

Add the following commands in your terminal to download the plugin

1. npm install @valifysolutions/react-native-vidvocr@\<LATEST\_VERSION>
2. npm pod-install (ONLY FOR IOS)

{% hint style="info" %}
Latest Version: 3.5.1
{% endhint %}

#### iOS Project

In info.plist add the following permissions:

* Required: “NSCameraUsageDescription”
* Optional: “NSLocationWhenInUseUsageDescription” **Only if you’re willing to use “collect\_user\_info” option**

#### Android Project

Open the file `Gradle Scripts | gradle.properties` enable the following:

```groovy
android.enableJetifier=true
android.useAndroidX=true
```

Please note that location access needs to be granted if you’re welling to use “collect\_user\_info” option to collect the user's geolocation and timezone

Add this code into your AndroidManifest.xml file :<br>

```xml
<manifest xmlns:android="http://s...content-available-to-author-only...d.com/apk/res/android"
    xmlns:tools="http://s...content-available-to-author-only...d.com/tools">
    <!-- Add the meta-data element here with tools:replace -->
        <meta-data
            android:name="com.google.mlkit.vision.DEPENDENCIES"
            android:value="ocr"
        tools:replace="android:value" />
```
