# 2. Installation

{% hint style="danger" %}
This document refers to deprecated parts of the platform and has been left intact to help customers with legacy integrations. In order to access the latest platform features and documentation, please go to <https://docs.sentiance.com>.
{% endhint %}

The latest version of the Sentiance React Native module is [**4.4.8**](https://www.npmjs.com/package/react-native-sentiance).

## Add the NPM Dependency

Run the following command in your terminal window, inside the project directory:

```
npm install --save react-native-sentiance
```

The Sentiance React Native module should now be added to your \*\*\*\* project's **package.json** file.

{% code title="package.json" %}

```groovy
{
  ...,
  "dependencies": {
    ...,
    "react-native-sentiance": "^4.4.8"
  }
}
```

{% endcode %}

## Update the Podfile for iOS

Add the following lines to the **Podfile** file in your project's **ios** directory:

{% code title="ios/Podfile" %}

```ruby
pod 'RNSentiance', :path => '../node_modules/react-native-sentiance/ios/RNSentiance.podspec'
pod 'SENTSDK', :podspec => '../node_modules/react-native-sentiance/ios/SENTSDK.podspec'
```

{% endcode %}

Then in the terminal window, run the following command inside your project's **ios** directory:

```bash
pod install --repo-update
```

## Include the SDK for Android

Add the following lines to the **settings.gradle** file in your project's **android** directory:

{% code title="android/settings.gradle" %}

```groovy
include ':react-native-sentiance'
project(':react-native-sentiance').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sentiance/android')
```

{% endcode %}

Add the Sentiance repository to the **build.gradle** file in your project's **android** directory:

{% code title="android/build.gradle" %}

```
allprojects {
    repositories {
        ...
        maven { url "http://repository.sentiance.com" }
    }
}
```

{% endcode %}

Finally, add a dependency to the React Native project to your app's **build.gradle**:

{% code title="android/app/build.gradle" %}

```groovy
dependencies {
    ...
    implementation project(':react-native-sentiance')
}
```

{% endcode %}
