Check out example codes for "change element in iframe". It will help you in understanding the concepts better.

Code Example 1

// so you got an iframe (id="myiframe"). In that page you have an element id="theprice" and you want to change its value
// from the parent page do this in your javascript:
var iframevar = document.getElementById('myiframe');
var elmnt = iframevar.contentWindow.document.getElementById("theprice");
elmnt.innerHTML = theNewPrice;

Learn ReactJs, React Native from akashmittal.com