onLayout function
Invoked on mount and layout changes with
{nativeEvent: { layout: {x, y, width, height}}}.
This event is fired immediately once the layout has been calculated, but the new layout may not yet be reflected on the screen at the time the event is received, especially if a layout animation is in progress.
Please login to continue.