You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can we adjust the height of webview dynamically based on the HTML content?
As per the suggestion here react-native-webview/react-native-webview#413 (comment) I have added the code below which works fine on Android as well as on IOS but doesn't work on the web, on the web it showing scrolling bar, not adjusting to the height of the content.
I had the same problem - it doesn't work because window.ReactNativeWebView.postMessage doesn't work. window.ReactNativeWebView is defined in react-native-webview, but it's undefined in react-native-web-webview, ergo it doesn't work on web.
How can we adjust the height of
webview
dynamically based on the HTML content?As per the suggestion here
react-native-webview/react-native-webview#413 (comment) I have added the code below which works fine on Android as well as on IOS but doesn't work on the web, on the web it showing scrolling bar, not adjusting to the height of the content.
Here is my code:
The text was updated successfully, but these errors were encountered: