Check out example codes for "iframe with html string". It will help you in understanding the concepts better.

Code Example 1

<iframe srcdoc="<html><body>Hello, <b>world</b>.</body></html>"></iframe>

Learn ReactJs, React Native from akashmittal.com