phenix-react-chat

v2020.0.1
Phenix React text chat view component
phenix chat

ChatView

Package for chatting in real time while watching a stream with support for sending emojis and chat history.

Usage:

import ChatView from 'phenix-react-chat';

...

<ChatView roomService={roomService} />

Props

roomService

Required property. Object is similar to phenix-web-sdk RoomService instance.

Default props

parseScreenName

Function which gets user info from message object in string format. It parses string and returns object with props: screenName and email.

parseScreenName('"myname" <myemail>') {
  return {
    screenName: 'myname',
    email: 'myemail'
  };
}
npm i phenix-react-chat

Metadata

Downloads