Skip to content

[Feature request] Support for passing headers and other request options in setImage #468

@totla-deshaw

Description

@totla-deshaw

Is your feature request related to a problem? Please describe.
The uploaded images would be behind a auth and we need to pass request options, primarily headers to render them. The native Image tag supports headers in src.

Describe the solution you'd like
Ideally, src should be of ImageSource type

Describe alternatives you've considered
The only alternative I could think of is maintaining a map of remote image url to the local uri and pass that instead of the remote url if image upload was successful. The major vulnerability here is server not being the source of truth.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions