# chatwoot-react-native-widget **Repository Path**: chatwoot/chatwoot-react-native-widget ## Basic Information - **Project Name**: chatwoot-react-native-widget - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: develop - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-09-15 - **Last Updated**: 2025-09-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
### Installation
Install the library using either yarn or npm like so:
```sh
yarn add @chatwoot/react-native-widget
```
OR
```sh
npm install --save @chatwoot/react-native-widget
```
This library depends on [react-native-webview](https://www.npmjs.com/package/react-native-webview) and [async-storage](https://github.com/react-native-async-storage/async-storage). Please follow the instructions provided in the docs.
### iOS Installation
If you're using React Native versions > 60.0, it's relatively straightforward.
```sh
cd ios && pod install
```
### How to use
1. Create a website channel in chatwoot server by following the steps described here https://www.chatwoot.com/docs/channels/website
2. Replace `websiteToken` prop and `baseUrl`
```
import React, { useState } from 'react';
import { StyleSheet, View, SafeAreaView, TouchableOpacity, Text } from 'react-native';
import ChatWootWidget from '@chatwoot/react-native-widget';
const App = () => {
const [showWidget, toggleWidget] = useState(false);
const user = {
identifier: 'john@gmail.com',
name: 'John Samuel',
avatar_url: '',
email: 'john@gmail.com',
identifier_hash: '',
};
const customAttributes = { accountId: 1, pricingPlan: 'paid', status: 'active' };
const websiteToken = 'WEBSITE_TOKEN';
const baseUrl = 'CHATWOOT_INSTALLATION_URL';
const locale = 'en';
const colorScheme='dark'
return (
| Name | Default | Type | Description |
|---|---|---|---|
| baseUrl | - | String | Chatwoot installation URL |
| websiteToken | - | String | Website channel token |
| colorScheme | light | String | Widget color scheme (light/dark/auto) |
| locale | en | String | Locale |
| isModalVisible | false | Boolean | Widget is visible or not |
| closeModal | - | Function | Close event |
| user | {} | Object | User information about the user like email, username and avatar_url |
| customAttributes | {} | Object | Additional information about the customer |