0

I don't know how to find out the height of the webview which comes from an external source. I tried using the height of the display and on iOS it looks fine, but on Android the webview is cut and only the part visible on the display is shown (not possible to scroll down).

giliev
  • 2,938
  • 4
  • 27
  • 47
  • Use the Dimensions component from react-native – Rajendran Nadar Jun 26 '18 at 13:54
  • The Dimensions component gives me the height of the display and I used it. With that approach if the webview has height > displayHeight, then it is cut to the height of the display. – giliev Jun 26 '18 at 13:55
  • can you share your webview code? – soutot Jun 26 '18 at 16:54
  • 3
    Does this answer your question? [React native: webview height](https://stackoverflow.com/questions/35446209/react-native-webview-height) – Jules Sam. Randolph Oct 09 '20 at 23:29
  • 1
    @JulesSam.Randolph seems like it does. Can't test it because I don't have RN installed anymore, but based on the Question & Answers, seems like that question is same as mine. – giliev Oct 11 '20 at 09:03

0 Answers0