Giphy
Component to render Giphy attachments within the MessageList
.
This is the default component provided to the prop Giphy
on the Channel
component.
Props
attachment
Attachment object for giphy
type attachment.
Type |
---|
Object |
additionalTouchableProps
Additional props provided to the underlying TouchableOpacity used by components within a message such as MessageContent
.
Type |
---|
object |
handleAction
Function to send an attachment action on message. For example, in case of giphy
type attachments, there are 3 actions available - Shuffle, Cancel, Send.
Type |
---|
(name: string, value: string) => Promise |
onLongPress
Default long press handler for message UI.
Type |
---|
function |
onPress
Default press handler for message UI.
Type |
---|
function |
onPressIn
Default pressIn
handler for message UI.
Type |
---|
function |
setSelectedMessage
Setter for value selectedMessage
.
Type |
---|
(selectedMessage: {messageId?: string; url?: string;}) => void |
setMessages
Setter for value messages
.
Type |
---|
(messages: [MessageType](https://github.com/GetStream/stream-chat-react-native/blob/main/package/src/components/MessageList/hooks/useMessageList.ts)[]) => void |
setOverlay
Setter for overlay
. You can use this setter to show the overlay.
Type |
---|
(overlay) => void |
UI Component Props
ImageComponent
Drop in replacement of all the underlying Image
components within SDK.
This is useful for the purpose of offline caching of images. Please check the Offline Support Guide for usage.
Type | Default |
---|---|
ComponentType | Image |