I have a component WebView
that loads a String
HTML
, the problem is that I can not load a local image inside this WebView
. The image is inside the folder '../img/imagem.png'
and when I put this "address" as source of <img>
it does not load, some light!?
const paragraphs = ' <img src="../img/imagem.png"/> ';
export default class Demo extends PureComponent {
render () {
return (
<WebView
source={{html:paragraphs}}
scalesPageToFit/>
);
}
}