> For the complete documentation index, see [llms.txt](https://doc.batch.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.batch.com/developer/sdk/react-native/advanced/sdk-version-override.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.batch.com/developer/sdk/react-native/advanced/sdk-version-override.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
