iou90 / react-native-autoheight-webview

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

RenderLoading or default display #180

Closed hazelf42 closed 4 years ago

hazelf42 commented 4 years ago

Is your feature request related to a problem? If so, Please describe. It's difficult to lay out the rest of the page when the webview is loading the page. As it loads, its height is 0, making the page look bad as I wait for it to load.

Describe the solutions you came up with Unfortunately, setting a minHeight seems to break the autoheight, so that was my only solution. React Native Webview has RenderLoading, but it doesn't work with Autoheight Webview.

hazelf42 commented 4 years ago

Just needed to add startInLoadingState to get the loading screen to work. Nevermind 🤦🏼‍♀️