In expo you can now use the matchContents
prop to automatically adjust the webview size as per their documentaion.
import DOMComponent from './my-component';
export default function Route() {
return <DOMComponent dom={{ matchContents: true }} />;
}
There are several over examples of alternatives in the above link.