0
I have a component WebView
who carries a String
HTML
, the problem is I can’t carry a local image inside that WebView
. The image is inside the folder '../img/imagem.png'
and when I place this "address" as the source of <img>
she doesn’t carry any light!?
const paragraphs = ` <img src="../img/imagem.png"/> `;
export default class Demo extends PureComponent {
render () {
return (
<WebView
source={{html:paragraphs}}
scalesPageToFit/>
);
}
}