LayoutEvent Object Type
LayoutEvent
object is returned in the callback as a result of component layout change, for example onLayout
in View component.
#
Example#
Keys and valuesheight
#
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 |