iou90 / react-native-autoheight-webview

An auto height webview for React Native
ISC License
492 stars 162 forks source link

Auto Height is not working in case of <video> tag #169

Closed al-shivani closed 4 years ago

al-shivani commented 4 years ago

Here is my Sample HTML: Watch below video and select correct option

349989153 commented 4 years ago

@al-shivani Where is ur Sample HTML?

Sadbot commented 4 years ago

The same problem, html like this:

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, shrink-to-fit=no">
</head>

<body>
<p><video controls="controls" width="300" height="150">
  <source id="mp4" src="http://grochtdreis.de/fuer-jsfiddle/video/sintel_trailer-480.mp4" type="video/mp4" /></video></p>
</body>
</html>
iou90 commented 4 years ago

@Sadbot I do not get what is going wrong, the height of webview changed to 150+ with your code. Please provide more details.