LayoutEvent Object Type
LayoutEvent object is returned in the callback as a result of component layout change, for example onLayout in View component.
Exampleβ
{
    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 PressEvent.
| Type | Optional | 
|---|---|
number, null, undefined | No | 
Used byβ
Is this page useful?