Upload a local image within a Webview

0

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/>
        );
    }
}
    
asked by anonymous 20.08.2018 / 14:27

1 answer

1

Why do not you use the component instead of just rendering an image. link: link

    
05.09.2018 / 17:30