# Overriding SDK Version

By default The Batch React-Native plugin use the latest patch native sdk version of Batch for Android and iOS. When we release a new minor version of the native SDKs, it may take some time before we release the compatibility for the plugins. So that's why the plugin allows you to override the native sdk version used, to enjoy the latest native version before plugins are released.

> If you decide to override the native sdk version, please be careful when updating the plugin to change this version if necessary, it may not compile anymore.

#### Android

Just add the extra property `batchSdkVersion` in your top-level `build.gradle` file.

```groovy
// android/build.gradle

buildscript {
    ...
    ext {
        batchSdkVersion = '1.19.1'
    }
    dependencies {
        ...
    }
}
```

> On Android (only) it is possible to downgrade the native batch sdk version but it's absolutely not recommanded. There's a good chance the plugin won't compile anymore if you do.

#### iOS

Just add `pod 'Batch', '1.19.1'` in your `ios/Podfile`.

```groovy
target 'YourApp' do
  ...
  pod 'Batch', '1.19.1'
end
```

And then update the installed pod by running in a terminal:

```bash

cd ios && pod install

```


---

# 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://doc.batch.com/developer/sdk/react-native/advanced/sdk-version-override.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.
