Вот код веб-просмотра
Код: Выделить всё
console.log('webmsg', event)}
onError={(error) => console.log('weberror', error.message)}
scrollEnabled={true}
mixedContentMode='never'
source = {{uri:"https://www.cdc.gov/healthyweight/assessing/adult-widget/iframe.html"}}
/>
Код: Выделить всё
const jsCode = `document.querySelector('#show_embedcode').style.display = "none";
const meta = document.createElement('meta');
meta.setAttribute('content', 'width=device-width, initial-scale=1.0, maximum-
scale=1.5, user-scalable=1');
meta.setAttribute('name', 'viewport');
document.head.appendChild(meta);`;
Подробнее здесь: https://stackoverflow.com/questions/790 ... droid-only