sonnt2510 / ibom-chat-popup-v2

Testing repo for tea community

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ibom-chat-popup-v2

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-v2'

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

About

Testing repo for tea community

License:The Unlicense


Languages

Language:JavaScript 77.1%Language:CSS 22.9%