# \[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](/sdk/android/acquire-sdk-apis.md).&#x20;

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.acquire.io/sdk/android/react-native.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
