Suppose that I have this in my React
render() {
let anImage= (
<img src="image.jpg" alt="image">
);
}
If I opened a page containing that in WebView, how can I get the value of anImage
? By value, I mean a mere string contains <img src="image.jpg" alt="image">
. Is it possible?
I knew about JavascriptInterface
for WebView, but tbh, so far it doesn't give me the result I hope. I've tried one from here, and here. And then I realized, the page I tried to read from is from React. Thus I wonder if there's a particular way for that?