Variable: HandleVisualViewportFeature

• Const HandleVisualViewportFeature: FeatureClass<{}, { onDOMVisualViewport: PropDefinition<"onDOMVisualViewport", (d: VisualViewportDimensions) => void> }>

This feature provides onDOMVisualViewport prop with payloads of type VisualViewportDimensions. It will trigger events when the visual viewport changes. Requires VisualViewport API support on browsers (iOS Safari 13 and Android WebView 62). When the API is not available, payload object will have isLegacy field set to true. See VisualViewport API.

example

const Webshell = makeWebshell(WebView, new HandleVisualViewportFeature());