https://github.com/softcand/react-native-supsischat
https://github.com/softcand/react-native-supsischat
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/softcand/react-native-supsischat
- Owner: softcand
- Created: 2022-09-20T12:07:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-03T15:15:29.000Z (over 3 years ago)
- Last Synced: 2025-08-05T15:27:10.179Z (11 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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'
...
```
### Commands
openmakes visible supsis
closemakes invisible supsis
setUserDatafills login form
setDepartmentallows you to pick a department
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!