react-native-htmlview
react-native-htmlview copied to clipboard
react native htmlview with issue image size
htmlview image not showing when i try this way
<HTMLView addLineBreaks={false} value={page.content} stylesheet={HtmlStyles} renderNode={this._renderNode}/>
_renderNode(node, index, siblings, parent, defaultRenderer) {
if (node.name === 'img') {
const data = node.attribs;
return (
<Image
key={index}
source={{uri: data.src}}
resizeMode="contain"
style={{ height: 500, width: 500}}
/>
);
}
}
images show but we know this all images in page not same size. because we need some images icon size and same we need banner size in all condition what we do ? if have anybody solution please help me
Thanks