1.2.3 • Published 2 years ago

ibom-popup-chat v1.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

ibom-chat-popup

ibom-chat-popup provides an intercom-like chat window for IBom organization, this project based on react-chat-window

GitHub license

Demo and image of chat popup

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>
    )
  }
}