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

Add imageSourceProps to MessageImage #2330

Merged
merged 2 commits into from
Aug 30, 2023

Conversation

amhinson
Copy link
Contributor

@amhinson amhinson commented Jan 9, 2023

There is currently no way to add additional headers to the image shown in MessageImage. This can be an issue if you need to add credentials to the header when making a request, for instance.

Usage:

<MessageImage
    {...props}
    imageSourceProps={{
        headers: {
            Authorization: `Bearer ${authToken}`
        }
    }}
/>

src/MessageImage.tsx Outdated Show resolved Hide resolved
Copy link

@gajjardarshithasmukhbhai gajjardarshithasmukhbhai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @amhinson, it's looking good to me. but we will wait for @Johan-dutoit.

@Johan-dutoit Johan-dutoit merged commit 081084a into FaridSafi:master Aug 30, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants