# react-native-supsischat

> React Native Supsis Chat

Latest version **1.0.1** (published 2023-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-supsischat
pnpm add react-native-supsischat
yarn add react-native-supsischat
bun add react-native-supsischat
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-01-03 |
| First published | 2022-09-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Turgut Kurt |
| Maintainers | turgutkurt |
| Keywords | react-native-supsischat |

## Links

- npm: https://www.npmjs.com/package/react-native-supsischat
- Repository: https://github.com/softcand/react-native-supsischat
- Homepage: https://github.com/softcand/react-native-supsischat#readme
- Issues: https://github.com/softcand/react-native-supsischat/issues
- npm.io page: https://npm.io/package/react-native-supsischat

## Dependencies (2)

- [prop-types](https://npm.io/package/prop-types.md) ^15.8.1
- [react-native-webview](https://npm.io/package/react-native-webview.md) ^11.23.1

## Recent versions

- 1.0.1 (latest) — 2023-01-03
- 1.0.0 — 2022-09-20

## README

# SupsisChat for React Native

This is a React Native component to easily add [SupsisChat widget](https://supsis.com/) to your application.

It works for both iOS and Android.

## Getting Started

### Prerequisites

To use SupsisChat in your React application, you will need the SupsisChat license ID.

-   `domainName` - Defines the name of your application
-   For instance , namespace - `supsis` - for www.supsis.com

If you don't have an account, you can create one [here](https://supsis.com/).

### Installation

To import SupsisChat for React Native, run the following command to install required dependency (react-native-webview)
and react-native-supsischat library:

```javascript
yarn add react-native-webview react-native-supsischat
```

```javascript
npm install react-native-webview react-native-supsischat --save
```

## User Guide

### Start

Having imported SupsisChat for React Native, put it in your render method:

```javascript
import { SupsisChat } from 'react-native-supsischat'

...

<SupsisChat ref={supsisRef} domainName="your-domain-name"/>
```

### Commands
<table>
<tr><td>open</td><td>makes visible supsis</td></tr>
<tr><td>close</td><td>makes invisible supsis</td></tr>
<tr><td>setUserData</td><td>fills login form</td></tr>
<tr><td>setDepartment</td><td>allows you to pick a department</td></tr>
</table>
Example:

```javascript
supsisRef.current.setUserData({
	email: "John@doe.com",
});
```

## Support

If you need any help, you can chat with us [here](https://supsis.com/).

I hope you will find this module useful. Happy coding!

---
_Source: https://npm.io/package/react-native-supsischat · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
