Last active
April 7, 2020 13:11
-
-
Save vishalnarkhede/f7b4bf02de3772c25631f3692c64d024 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import {MessageSimple} from 'stream-chat-react-native'; | |
import {MessageFooter} from './MessageFooter'; | |
import {MessageText} from './MessageText'; | |
import {MessageAvatar} from './MessageAvatar'; | |
import {MessageHeader} from './MessageHeader'; | |
import {UrlPreview} from './UrlPreview'; | |
import {Giphy} from './Giphy'; | |
export const MessageSlack = props => { | |
if (props.message.deleted_at) { | |
return null; | |
} | |
return ( | |
<MessageSimple | |
{...props} | |
forceAlign="left" | |
ReactionList={null} | |
MessageAvatar={MessageAvatar} | |
MessageHeader={MessageHeader} | |
MessageFooter={MessageFooter} | |
MessageText={MessageText} | |
UrlPreview={UrlPreview} | |
Giphy={Giphy} | |
/> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment