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
Not all embeds have a fixed height. For example I may want to show a list of upcoming buses, if there is only one bus upcoming, I don't want to render a widget tall enough to accommodate three buses. Essentially the content length is variable.
So acheive this we'll need to inject some JS into the webview that can read the height of the document and report it back to the native app so that it can render the webview at the correct height. We may also want to use a mutation observer to monitor for changes.
Communicating JS -> Native is not supported by React Native's WebView component, so we'll likely have to extend it to add this feature.
The text was updated successfully, but these errors were encountered:
Not all embeds have a fixed height. For example I may want to show a list of upcoming buses, if there is only one bus upcoming, I don't want to render a widget tall enough to accommodate three buses. Essentially the content length is variable.
So acheive this we'll need to inject some JS into the webview that can read the height of the document and report it back to the native app so that it can render the webview at the correct height. We may also want to use a mutation observer to monitor for changes.
Communicating JS -> Native is not supported by React Native's
WebView
component, so we'll likely have to extend it to add this feature.The text was updated successfully, but these errors were encountered: