Display image from local system
Is there any way I can display an image from the local system inside of the webview? Basically I want to download some images from my server and display them on the webview, mainly to support offline mode and also performance.
One way is to build a base64 data url for the image and include that as part of the HTML (or inject it in via JavaScript later)
For those who come here after searching for a way to put local images in a react-native webview. You can put a local webpage including local images as reference in your xcode project and reference your image in the page via ./images/myimage.jpg. In other words drag and drop your webpage and image folder in your xcode project. Hopefully it helps someone.