Looking at the documents for the React Native WebView , the source property has two modes:
- Download URI
- Download a static HTML string
- Call result of
require(some.html)
In the second case, you can specify a baseUrl . If you install baseUrl in the directory where the images are downloaded, you should be able to link to them using <img src="./your-image.png" /> .
Post-Reply Editing: Refinement on External HTML
Unfortunately, there is no way to specify a base URL in cases 1 and 3, so you must first convert it to a string that can be passed to the source property. If your HTML refers to external external Javascript, you need to get a link to the package directory path where these files should be readable by your application, and reference them relative to this path.
EDIT: This applies to React Native 0.38
mdiin source share