ibom-popup-chat
v1.2.3
Published
IBom popup chat React component
Downloads
2
Readme
ibom-chat-popup
ibom-chat-popup
provides an intercom-like chat window for IBom organization, this project based on react-chat-window
Installation
$ npm install ibom-chat-popup or $ yarn add ibom-chat-popup
Running as demo
Using git to clone the project, and then run yarn install && npm start to install node modules and run the project.
After that go to demo/src/index to update correctly props like token, apiHost, etc.
Example
import React, {Component} from 'react'
import PopupChat from 'ibom-chat-popup'
class Demo extends Component {
...
render() {
return (
<div>
<PopupChat
apiHost={this.props.apiHost}
token={this.props.token}
objInstanceId={this.props.objInstanceId}
objId={this.props.objId}
username={this.props.username}
userId={this.props.userId}
chathubURI={this.props.chathubURI}
isOpen={this.props.isOpen}
/>
</div>
)
}
}