react-chat-widget icon indicating copy to clipboard operation
react-chat-widget copied to clipboard

Using renderCustomComponent to render user messages

Open manthanbaranwal opened this issue 4 years ago • 1 comments

Hi there,

I have a requirement to show an image user upload. I believe I can have an external component for upload and I can use the image to show in conversation. I found renderCustomComponent method, which can render almost anything in chat box.

Now whenever I use this component it renders component as a message from bot end, i.e. the component renders on the left side. Is there any way renderCustomComponent can render component as message from user?

Here is how renderCustomComponent is rendering the image in chat box.

Screenshot 2022-02-04 at 2 39 38 PM

This is how I need it to render.

Screenshot 2022-02-04 at 2 35 45 PM

manthanbaranwal avatar Feb 04 '22 09:02 manthanbaranwal

Did you ever find a solution for this?

Wintjen avatar Nov 11 '22 23:11 Wintjen