useLayout reports those constraints so the view can style and size itself to the space the host actually gives it.
Example
The carousel matches the host’s light or dark theme, fits its scroll area to the height the host offers, and keeps content clear of notches and home indicators.Returns
useLayout returns the host’s current layout for the view.
theme
"light" or "dark". Mirror it in the view’s styling for a native feel. It updates when the user toggles the host theme.
maxHeight
undefined when the host does not report a height limit. It updates as the host resizes the view’s container.
safeArea
0.
useUser
Read the locale and device capabilities of the host
useRequestSize
Ask the host to resize the view
Design for the Host
Adapt the view to the host’s surface