as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

LayoutEvent Object Type

LayoutEvent object is returned in the callback as a result of component layout change, for example onLayout in View component.

Example

Copied to clipboard.


{
    layout: {
        width: 520,
        height: 70.5,
        x: 0,
        y: 42.5
    },
    target: 1127
}

Keys and values

height

Height of the component after the layout changes.

Type Optional
number No

width

Width of the component after the layout changes.

Type Optional
number No

x

Component X coordinate inside the parent component.

Type Optional
number No

y

Component Y coordinate inside the parent component.

Type Optional
number No

target

The node id of the element receiving the LayoutEvent.

Type Optional
number, null, undefined No

Used by


Last updated: May 13, 2026