Skip to content

Instantly share code, notes, and snippets.

@vishalnarkhede
Last active April 14, 2020 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vishalnarkhede/301e101d51f2fb7e13086bab54e94da3 to your computer and use it in GitHub Desktop.
Save vishalnarkhede/301e101d51f2fb7e13086bab54e94da3 to your computer and use it in GitHub Desktop.
import React from 'react';
import {MessageAvatar as StreamMessageAvatar} from 'stream-chat-react-native';
export const MessageAvatar = props => {
return (
<StreamMessageAvatar
{...props}
showAvatar={
props.groupStyles[0] === 'single' || props.groupStyles[0] === 'top'
? true
: false
}
/>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment