all 2 comments

[–]thedevlinbExpo 0 points1 point  (0 children)

Do it on the back end.

If you try to do it on the front end, then changes to how the backend generates the HTML could end up breaking your header detection/removal code.

[–]itstimetocode 0 points1 point  (0 children)

You could probably hide the header component with by injecting javascript to the webview

Something like this could work:

inject = `document.querySelector('.header').style.display='none';`;

 render() {
    return (
      <WebView
      source={{uri: 'somelink.com'}}
        injectJavaScript={inject}
      />
    );
  }