Closed tcsmobilitydelhi closed 2 years ago
Hi @tcsmobilitydelhi! Thanks for taking time to submit a report. The <style>
and <link>
tags are not supported at the moment. It would require embedding a CSS parser and CSS engine. Given the complexity and overhead, this would be best implemented in C++ with a JSI interface, and some preliminary research is being done in that direction. To have an idea of the kind of required work, I suggest this article from Mozilla team: https://hacks.mozilla.org/2017/08/inside-a-super-fast-css-engine-quantum-css-aka-stylo/
In the meantime, you can open a feature request here: https://native-html.canny.io/
Thanks @jsamr .
I see this feature has already been requested. Looking forward to it.
Decision Table
<yyy>
is not rendered”Good Faith Declaration
Description
I am trying to render a webpage using the uri attribute in RenderHtml tag like this: <RenderHtml contentWidth={100} source={{uri: 'http://192.168.29.106:8080/Sample.html'}} />
It loads the page but without styling i.e. it doesn’t use the accompanying css. Only the HTML content displays.
I opened the same uri directly in web browser, it opens up with styling there.
What am I missing?
React Native Information
RNRH Version
6.3.3
Tested Platforms
Reproduction Platforms
Minimal, Reproducible Example
<RenderHtml contentWidth={100} source={{uri: 'http://192.168.29.106:8080/Sample.html'}} />
Additional Notes
No response