Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 30343

What should I do to make webview resizes images in the content to fit the mobile screen

$
0
0

webview doesn't resize images in the content to fit the mobile screen.

I use from "react-native-webview" and I'm trying to make the web content fit into the mobile screen but images don't fit at all causing horizontal scrolling.

I used scalesPageToFit={true} but it didn't help. I also tried style={{ flex: 1, width: Dimensions.get('window').width}} and style={{ flex: 1, width:'100%', alignSelf: 'stretch' }} but I didn't get any changes. I tried scrollEnabled={false} but nothing works.

  • "react-native": "0.57.8"
  • "react": "16.6.3"
  • "react-native-webview": "^2.14.3"
  • android
  • redmi note 4 - android version 7.0
  • windows 10

Viewing all articles
Browse latest Browse all 30343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>