Expo UI and Router for iOS
Modifiers

onGeometryChange

Calls the handler whenever the view's geometry changes, with its position and size. x and y are in the global coordinate space (relative to the window); all values are in points.

onGeometryChange(handler)

ParameterTypeDescription
handler(frame: { height: number, width: number, x: number, y: number }) => voidFunction called with the new frame.

Calls the handler whenever the view's geometry changes, with its position and size. x and y are in the global coordinate space (relative to the window); all values are in points.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

This modifier works with any view. These components accept it:

Sources

The original Expo docs for this page:

On this page