react-native-htmlview icon indicating copy to clipboard operation
react-native-htmlview copied to clipboard

react native htmlview with issue image size

Open prakashsaran opened this issue 6 years ago • 0 comments

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

prakashsaran avatar Oct 10 '19 06:10 prakashsaran