# \[Under Development] React Native

{% hint style="warning" %}
Our SDK is currently under review. Check back later for updates.
{% endhint %}

Acquire SDK can be easily integrated into React Native.

You can refer [react-native-doc](https://reactnative.dev/docs/native-modules-android) to use Native components.&#x20;

Acquire SDK is the same as any other third party native library&#x20;

You will need to add

```
allprojects {
...
    repositories {
   // Add this lines
        maven {
                url "https://android-sdk.acquire.io/artifactory/libs-release/"
        }
    }
...
}
```

this maven URL to your **project** level gradle.

And add this to your app **Module's** build.gradle

```
dependencies {
    implementation 'io.acquire:core-twilio-beta:1.+'
}
```

{% hint style="danger" %}
If you want to use the lite version then use the below configuration.
{% endhint %}

```
dependencies {
    implementation 'io.acquire:lite-beta:1.+'
}
```

Register Acquire SDK in the **onCreate()** method of an Activity/Application where you plan to use the SDK. Use the initialization details provided by the Acquire Support admin and an Application instance:

```
class XYZApp : Application() {
     override fun onCreate() {
     super.onCreate()
    AcquireApp.registerApp(this)
   }
}
```

Initialize Acquire SDK with **accountID** by using this method.&#x20;

{% hint style="warning" %}
This method will connect to the Acquire server in the background.
{% endhint %}

```javascript
AcquireApp.init(accountID)
```

**Permissions** \
We include the **INTERNET** permission by default as we need it to make network requests:

```
<uses-permission android:name="android.permission.INTERNET"/>
```

Needed below permissions to make audio/video calls.

```
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
```

Needed below permissions for attachments to share from the app.

```
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
```

{% hint style="success" %}
All the above **permissions** need to be mentioned in your **AndroidManifest** file.
{% endhint %}

You can download our demo react native [source code](https://drive.google.com/file/d/1Ga7vgi5Zg2BKSIDfc9FG-np8j5IqEFRR/view?usp=sharing).

To know more about initialization options [click here](https://developer.acquire.io/sdk/android/acquire-sdk-apis).&#x20;

To get session events [click here](https://developer.acquire.io/sdk/android/acquire-android-delegates).&#x20;
