Upload a local image inside a webview

Asked

Viewed 132 times

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/>
        );
    }
}

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.