> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-feature-card-builder.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Upgrading From V3

> Migrate your CometChat React Native SDK integration from v3 to v4 with updated dependencies and import statements.

<Accordion title="AI Integration Quick Reference">
  Key changes from v3 to v4:

  * Chat SDK: `npm i @cometchat/chat-sdk-react-native`
  * Calls SDK: `npm i @cometchat/calls-sdk-react-native`
  * Import: `import { CometChat } from '@cometchat/chat-sdk-react-native'`
  * Import Calls: `import { CometChatCalls } from '@cometchat/calls-sdk-react-native'`
</Accordion>

Upgrading from v3 to v4 is straightforward — the API surface is the same, only the package names and imports changed. Follow the [v4 setup instructions](/sdk/react-native/setup-sdk) first, then update your dependencies and imports as shown below.

## Update Dependencies

| SDK       | v3 Package                          | v4 Package                          |
| --------- | ----------------------------------- | ----------------------------------- |
| Chat SDK  | `@cometchat-pro/react-native-chat`  | `@cometchat/chat-sdk-react-native`  |
| Calls SDK | `@cometchat-pro/react-native-calls` | `@cometchat/calls-sdk-react-native` |

```bash theme={null}
# Remove v3 packages
npm uninstall @cometchat-pro/react-native-chat @cometchat-pro/react-native-calls

# Install v4 packages
npm i @cometchat/chat-sdk-react-native
npm i @cometchat/calls-sdk-react-native
```

## Update Import Statements

Find and replace all import statements across your project:

| SDK       | v3 Import                                                            | v4 Import                                                            |
| --------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| Chat SDK  | `import { CometChat } from '@cometchat-pro/react-native-chat'`       | `import { CometChat } from '@cometchat/chat-sdk-react-native'`       |
| Calls SDK | `import { CometChatCalls } from '@cometchat-pro/react-native-calls'` | `import { CometChatCalls } from '@cometchat/calls-sdk-react-native'` |

```javascript theme={null}
// v4 Chat SDK
import { CometChat } from '@cometchat/chat-sdk-react-native';

// v4 Calls SDK
import { CometChatCalls } from '@cometchat/calls-sdk-react-native';
```

<Note>
  The API methods, class names, and listener interfaces are unchanged between v3 and v4. Once you update the packages and imports, your existing code should work without further modifications.
</Note>

***

## Next Steps

<CardGroup cols={2}>
  <Card title="Setup SDK" icon="gear" href="/sdk/react-native/setup-sdk">
    Install and configure the CometChat React Native SDK
  </Card>

  <Card title="Changelog" icon="clock-rotate-left" href="/sdk/react-native/changelog">
    Latest SDK version and release notes
  </Card>

  <Card title="Authentication" icon="lock" href="/sdk/react-native/authentication-overview">
    Set up user authentication with v4
  </Card>

  <Card title="Key Concepts" icon="book" href="/sdk/react-native/key-concepts">
    Learn the core concepts behind CometChat v4
  </Card>
</CardGroup>
