img's tag resizeMode property not modifiable through html tagStyles
See original GitHub issueIs 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:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@LorrisSaintGenez We’re working on it!
@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