software-mansion / software-mansion/react-native-enriched-html

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

Open
#468 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C
Stars
1.4k
Forks
66
Avg merge
4d 19h
Merged PRs (30d)
11

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The request centers on setImage and React Native's ImageSource shape; start by locating that API and its image-rendering path. Compare the current src handling with the linked ImageSource contract, then verify authenticated remote images can pass request options and that existing image behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.