Comments (7)
I also don't know why this happens. But it is not a problem of WebView Package. It has to do with your CSS. Setting <body>
to height:0px helped me remove the unwanted space at the bottom.
body{
height: 0px !important;
}
from react-native-webview-autoheight.
我是个来自**程序员。我也碰到了这个情况,在ListVIew中,当数据不多,高度渲染正常,但是数据很多时,ListView里面的Item就会渲染不正常,WebView的高度会等于屏幕的高度
I am a Chinese code'r. I have encountered this situation, in ListVIew, when the data is not much, the high rendering normal, but the data is very large, ListView inside the Item will render is not normal, WebView height will be equal to the height of the screen。
source={{html: xxx}}
from react-native-webview-autoheight.
@dktan Did you solve it?
from react-native-webview-autoheight.
@wh-Coder 我换了react-native-autoheight-webview
from react-native-webview-autoheight.
@dktan could you send a PR?
from react-native-webview-autoheight.
it still happens!
from react-native-webview-autoheight.
Just set the scalesPageToFit={false}, will work like a charm.
from react-native-webview-autoheight.
Related Issues (17)
- Some Issue about autoheight
- AutoHeight issue when CSS is applied HOT 1
- License? HOT 1
- postMessage and onMessage not work on Chrome 70 HOT 5
- don't work on Android ? HOT 2
- how to enable horizontal scroll view
- App becomes slow when library added HOT 2
- Error when trying to set html source
- website doesn't render at all HOT 2
- android 闪全屏的白屏
- [Android] Don't work HOT 3
- when Using <!DOCTYPE html> the height is not calculated correctly HOT 1
- Can't call .stopLoading() for opening links on HTML Page HOT 4
- Doesn't update height after changing html source? HOT 4
- Ref doesn't have method reload HOT 4
- WebView inside FlatList, Height of last loaded webview is applying to all webview? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-webview-autoheight.