react-native-htmlview
react-native-htmlview copied to clipboard
Does anyone have a solution on how to manage inline style?
Hi,
I have to be able to manage a html like this:
<table style="background-color: #72be58; height: 92px;" width="202">
<tbody>
<tr>
<td style="width: 192px;">
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="https:/image.com" alt="" width="185" height="42" /></p>
<p> <span style="color: #ffffff;"><strong>Powered by MySite</strong></span></p>
</td>
</tr>
</tbody>
</table>
Has anyone found an effective way? Thanks
Same issue, any idea?
same here ...
@Richi2293 found a solution ?
Hi, I don't remember having found a real solution, maybe a possible solution is to use a webview component and load local html
You sould define renderNode and get node.attribs.style string and split and trim this string for geting key value pair and with a module that i cant remember now, convert css key to rn style key and make a object with key value as styles object. This solution for geting key value from string, needs loop that can be expensive for big inline css styles