You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if there's a way to implement a way to show the overlay to support reactions on Custom Attachments. Just passing in the onPressIn from the messages context doesn't seem to work, probably because the payload for the touchable handler type omits anything with the emitter of "card"?
export type TouchableHandlerPayload = { defaultHandler?: () => void; event?: GestureResponderEvent; } & ( | { emitter?: Exclude<TouchableEmitter, 'textMention' | 'textLink' | 'card' | 'fileAttachment'>; } | TextMentionTouchableHandlerPayload | UrlTouchableHandlerPayload | FileAttachmentTouchableHandlerPayload );
So I presume I'd need my own custom implementation using the overlay context and adding the reactions manually to the message object which is rendered by the MessageSimple -> MessageContent -> (map through message content) -> (defaults to) MessageTextContainer.
I'm not sure if this is entirely correct. The only other solution I'm aware of is always sending text with the attachment.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm wondering if there's a way to implement a way to show the overlay to support reactions on Custom Attachments. Just passing in the onPressIn from the messages context doesn't seem to work, probably because the payload for the touchable handler type omits anything with the emitter of "card"?
export type TouchableHandlerPayload = { defaultHandler?: () => void; event?: GestureResponderEvent; } & ( | { emitter?: Exclude<TouchableEmitter, 'textMention' | 'textLink' | 'card' | 'fileAttachment'>; } | TextMentionTouchableHandlerPayload | UrlTouchableHandlerPayload | FileAttachmentTouchableHandlerPayload );
So I presume I'd need my own custom implementation using the overlay context and adding the reactions manually to the message object which is rendered by the MessageSimple -> MessageContent -> (map through message content) -> (defaults to) MessageTextContainer.
I'm not sure if this is entirely correct. The only other solution I'm aware of is always sending text with the attachment.
Beta Was this translation helpful? Give feedback.
All reactions