react-native webview image Click to enlarge

947 views Asked by At

My page is webview display html code returned by the background program. Now need to achieve click image to enlarge effect,And if there is more than one picture in the page, a picture list appears, can swipe right and left.I do not have a solution to the problem now. If you know how to solve please tell me the idea, or will need to use the component to tell me. If you have a sample program, that would be better. Many thanks!

1

There are 1 answers

2
Hisham Mubarak On

Webview has very limited controls and what happens inside the webview is mostly dependent on the website that is being displayed.

Why not Instead of showing a webview, you do a get request to the webview url, get the whole page's html as response, filter out the images from it and then display it in a component itself without webview?