phenix-react-chat
v2020.0.1 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
- Apache-2.0
- Whatever
- PhenixRTS
- released 7/14/2020