ref(chat): on native, show messages as grouped by sender

This commit is contained in:
Leonard Kim
2019-05-14 09:20:25 -07:00
committed by virtuacoplenny
parent 34dffbfc5e
commit 7187e540a8
5 changed files with 56 additions and 32 deletions
@@ -19,12 +19,24 @@ export type Props = {
*/
message: Object,
/**
* Whether or not the avatar image of the participant which sent the message
* should be displayed.
*/
showAvatar: boolean,
/**
* Whether or not the name of the participant which sent the message should
* be displayed.
*/
showDisplayName: boolean,
/**
* Whether or not the time at which the message was sent should be
* displayed.
*/
showTimestamp: boolean,
/**
* Invoked to receive translated strings.
*/
@@ -36,7 +48,9 @@ export type Props = {
*/
export default class AbstractChatMessage<P: Props> extends PureComponent<P> {
static defaultProps = {
showDisplayName: true
showAvatar: false,
showDisplayName: false,
showTimestamp: false
};
}