question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

img's tag resizeMode property not modifiable through html tagStyles

See original GitHub issue

Is this a bug report or a feature request?

feature/bug

Details

There seems no way to set the resizeMode property to an image tag through the tagStyles.

const myTagStyles = {
    img: {
        resizeMode: 'contain',
    },
};
<HTML  tagsStyles={myTagStyles} />

As i searched in the source code it defaults to “cover”.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jsamrcommented, Jul 5, 2020

@LorrisSaintGenez We’re working on it!

0reactions
LorrisSaintGenezcommented, Jun 7, 2020

@Exilz Any blocking to this PR https://github.com/archriss/react-native-render-html/pull/315 ? That would hopefully solve this issue. Will need to fork it in the meantime, but would rather avoid it

Read more comments on GitHub >

github_iconTop Results From Across the Web

img's tag resizeMode property not modifiable through html ...
There seems no way to set the resizeMode property to an image tag through the tagStyles. ... As i searched in the source...
Read more >
Resize-Property not working on IMG-Tag - Stack Overflow
I am just having a strange problem. I am currently creating a simple WYSIWYG-Editor for my website. For this I am simply using...
Read more >
Understanding “resizeMode” in React Native | by Mehran Khan
it will scale image to dimensions of image view without maintaining the aspect ratio. After Scaling this will happen. Scale Image Width =...
Read more >
packages/render-html/CHANGELOG.md - GitHub
[6.3.4](https://github.com/meliorence/react-native-render-html/compare/v6.3.3...v6 ... `img`'s tag `resizeMode` property not modifiable through `tagStyles`, ...
Read more >
react-native-render-html: Versions - Openbase
New prop contentWidth (see usage above). Bugfixes. Image getting blur on iOS, #141;; img 's tag resizeMode property not modifiable through tagStyles ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found