formidable-webview / webshell

🔥 Craft Robust React Native WebView-based components with ease.
https://formidable-webview.github.io/webshell/
MIT License
101 stars 4 forks source link

takes some time to adjust height #7

Closed ambessh closed 3 years ago

ambessh commented 3 years ago

inside scrollview this package shows a large gap below html and then auto shrinks to fit. can you help it not show gap

jsamr commented 3 years ago

@ambessh this is totally expected, since the react component cannot guess the height of the page before it has been computed and drawn by the WebView. So there will always be a jumping height. However, you can adjust the initial height before computation with the initialHeight prop of the useAutoheight hook.

jsamr commented 3 years ago

Closing due to inactivity.