simpu react-native livechat sdk
npm install @simpu/simpu-rn-livechat

For more information about Simpu live chat visit the official simpu developer docs.
- Android
- iOS
due to third party libraries like pusher, this lbrary will only support:
- iOS 13.0 and above
- Android 7 and above. Android 6 will require desugaring.
By cloning this repository you can check the React Native example application,
a minimal application, you can connect your app_id and public_key to test .
- https://github.com/simpu-inc/simpu-rn-livechat/tree/main/example



``sh`
npm install @simpu/simpu-rn-livechat
or
`sh`
yarn add @simpu/simpu-rn-livechat
`js
import SimpuLiveChat from '@simpu/simpu-rn-livechat';
// ...
const App = () => {
return (
... // place component anywhere around your App.jsx or App.tsx
public_key={"publik key"}
/>
);
};
`
## Props
The complete set of options is described below:
| Props | description | type | default value |
| ------------ | -------------------------------------------------------------------- | -------------------- | ------------- |
| app_id | An eight character string, provided whern setting your live chat. | string | '' |public_key
| | An long character string, provided whern setting your live chat.text | string | '' |name
| | name of the logged in user | string | |email
| | email of the logged in user | string | '' |phone
| | email of the logged in user | string | '' |user_id
| | a unique id of the logged in user | string or number | "" |
`js
import SimpuLiveChat from '@simpu/simpu-rn-livechat';
const Help = () => {
const handleOpenLiveChat = ()=>{
//call the live chat open method with or without parameters
SimpuLiveChat.open()
}
return (
);
};
``
MIT
---
Made with create-react-native-library