Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using renderCustomComponent to render user messages #298

Open
manthanbaranwal opened this issue Feb 4, 2022 · 1 comment
Open

Using renderCustomComponent to render user messages #298

manthanbaranwal opened this issue Feb 4, 2022 · 1 comment

Comments

@manthanbaranwal
Copy link

manthanbaranwal commented Feb 4, 2022

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

@Wintjen
Copy link

Wintjen commented Nov 11, 2022

Did you ever find a solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants