[Feature request] Add optional attributes parameter to setImage #615
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- react-native, typescript
- Domain
- mobile-dev
Research direction
Locate the setImage and setMention definitions and their usages in the React Native library, then compare how the optional attributes parameter is represented. Update setImage so callers can provide the proposed string-keyed attributes and verify that the metadata is accepted and preserved consistently with setMention.
Written by the indexing model from the issue text.
Description
Description
Hi! Thanks for the awesome library.
I noticed that setMention supports an optional attributes?: Record<string, string> parameter, which is super useful. However, setImage currently doesn't support this.
Use Case
I need to distinguish between different types of images in my application (e.g., distinguishing a standard user-uploaded image from a custom system sticker/emoji, or adding custom layout metadata like align: center).
Having an attributes parameter in setImage would allow us to pass custom metadata seamlessly.
Proposed API
setImage: (
src: string,
width: number,
height: number,
attributes?: Record<string, string> // <-- Add this
) => void;
- Dominant language
- C
- Stars
- 1.4k
- Forks
- 66
- Avg merge
- 4d 19h
- Merged PRs (30d)
- 11
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from software-mansion/react-native-enriched-html
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 38/100
software-mansion/react-native-enriched-html#798 · 2 comments ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 55/100
software-mansion/react-native-enriched-html#797 · 2 comments ·
-
[Android] Native undo restores text but silently strips inline styles, links, and list structure Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
software-mansion/react-native-enriched-html#734 · 2 comments ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 42/100
software-mansion/react-native-enriched-html#732 · 1 comment ·
All issues in software-mansion/react-native-enriched-html
Similar issues
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
P3 sonic-vpp
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sonic-net/sonic-buildimage#29662 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
spack/spack-packages#6586 ·
-
category:port-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100