Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
LayoutEvent object is returned in the callback as a result of component layout change, for example onLayout in View component.

Example

Keys and values

height

Height of the component after the layout changes.

width

Width of the component after the layout changes.

x

Component X coordinate inside the parent component.

y

Component Y coordinate inside the parent component.

target

The node id of the element receiving the LayoutEvent.

Used by

Last modified on May 13, 2026