docs/layoutevent.md
LayoutEvent object is returned in the callback as a result of component layout change, for example onLayout in View component.
{
layout: {
width: 520,
height: 70.5,
x: 0,
y: 42.5
},
target: 1127
}
heightHeight of the component after the layout changes.
| Type | Optional |
|---|---|
| number | No |
widthWidth of the component after the layout changes.
| Type | Optional |
|---|---|
| number | No |
xComponent X coordinate inside the parent component.
| Type | Optional |
|---|---|
| number | No |
yComponent Y coordinate inside the parent component.
| Type | Optional |
|---|---|
| number | No |
targetThe node id of the element receiving the LayoutEvent.
| Type | Optional |
|---|---|
number, null, undefined | No |