Interface: VisualViewportDimensions

An object describing the visual viewport of the WebView.

Hierarchy

  • VisualViewportDimensions

Properties

isLegacy

• isLegacy: boolean

false when these values are coming from the VisualViewport API and true when they are "best guess". In legacy mode, be warned that you will not receive frequent updates when the user pinch-zoom.


scale

• scale: number

The visual viewport scale. Because this API is quite recent, we have a fallback strategy to compute scale.

remarks The other values in this object are already in React Native dpi units.


visualViewport

• visualViewport: DOMRectSize

window.visualViewport.width and window.visualViewport.height